Hello,
Does the HTTPRequest use URL Encoding on my name=value pairs? Is there a way I can see what the final outgoing data looks like. I am having trouble posting to URL and it must have proper URL encoding to work. example: space = %20
Thanks
Eric
Support... Need help with HTTPRequest
Moderators: JRL, Dorian (MJT support)
Hi,
You would need to encode the URL data yourself. You can do this using the VBScript Escape function:
VBSTART
VBEND
VBEval>Escape("parm1=someval with space&parm2=etcetc"),URLPath
You would need to encode the URL data yourself. You can do this using the VBScript Escape function:
VBSTART
VBEND
VBEval>Escape("parm1=someval with space&parm2=etcetc"),URLPath
MJT Net Support
[email protected]
[email protected]
Thanks very much for the quick response. I am still having trouble with the HTTP request command.support wrote:Hi,
Of course you can - you can post to any http resource.
When I use a browser I can definately see the URL but when I try to use the HTTP Request I get a 404 not found error. Any suggestions on what I can do to trouble shoot this. I must be missing something. I think I don't understand how the HTTP Request works in MacroScheduler, for example does MS include the ? between the URL and Name Value Pairs? Hmmm anyway here is my code.
HTTPRequest>http://iis-comm-d1/home.html,,Get,,HTMLResponse
or
Let>PostData=loan_number=%loan_number%
HTTPRequest>http://iis-comm-d1/home.html,,Post,%Pos ... MLResponse
MessageModal>HTMLResponse
These are obviously internal servers so you cannot hit them from the outside but do you see anything wrong with my code? I can directly paste this url into my browser and it works fine. Thanks for your help.
Eric
Hi,
If you're doing a GET then you should include the name=value pairs on the URL:
HTTPRequest>http://www.someserver.com?name=value,,GET,,Result
Result will contain the HTML.
If you're doing a GET then you should include the name=value pairs on the URL:
HTTPRequest>http://www.someserver.com?name=value,,GET,,Result
Result will contain the HTML.
MJT Net Support
[email protected]
[email protected]
Got it to work... thanks.support wrote:Hi,
If you're doing a GET then you should include the name=value pairs on the URL:
HTTPRequest>http://www.someserver.com?name=value,,GET,,Result
Result will contain the HTML.

Is there a way I can adjust the timeout time to on the response coming back?