pro2gramer5 Posted November 15, 2016 Share Posted November 15, 2016 Hello, I read through the help files and forums but couldn't find anything helpful: I'm trying to send an HTTP Request to run an AutoIt executable but am having trouble sending $CmdLine parameters through it. I'm able to send the request to run the file alone, but run into trouble once I try to send parameters. EXAMPLE request: http://exampleserver.exampledomain.com/exampleautoitscript.exe Does anyone know a way to pass variables this way? (i.e. exampleautoitsript.exe%20param1¶m2) Link to comment Share on other sites More sharing options...
BananaFish Posted November 15, 2016 Share Posted November 15, 2016 Hello pro2gramer5, Could you type out the line with the executable followed by the parametres behind it? What do you expect the input to the executable to look like? And what are you getting? May we also see the code too ? BananaFish Link to comment Share on other sites More sharing options...
pro2gramer5 Posted November 16, 2016 Author Share Posted November 16, 2016 BananaFish Typically when you want to execute a script and pass on parameters for the cmdline to interpret, you place the parameters after the script name separated by spaces (i.e. 'scriptname.exe test', will run 'scriptname.exe' and set "test" as the $sCmdLine value. I'm unable to do this when sending an HTTP Request to run the executable I placed on my server and domain, it returns the 404 message of directory not found. I know that a space in HTTP is '%20', which I've also tried with no luck. It seems in order to pass data/arguments in an HTTP request you need separators such as ? and &, but I don't know the right combination. The code is not necessary as this isn't a coding question, but rather a question on how to properly pass a cmdline value through an HTTP request. Thanks Link to comment Share on other sites More sharing options...
Dent Posted November 16, 2016 Share Posted November 16, 2016 Try http://lame.com/my.exe?param1%20param2 or http://lame.com/my.exe?=param1%20param2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now