EDN Admin
Well-known member
Hi:
I am using MSXML2.ServerXMLHTTP in a Jscript like this:
oRequest = new ActiveXObject(MSXML2.ServerXMLHTTP);<br/>
<br/>
oRequest.open("POST", "https://www.mydomain.com/someDirectory/someTransaction?someParameter=someValue", false);
The request line in the HTTP request that goes out on the wire looks like this:
POST /someDirectory/someTransaction?someParameter=someValue HTTP/1.1
But I would like it to look like this:
POST https://www.mydomain.com/someDirectory/someTransaction?someParameter=someValue HTTP/1.1
...that is, with the entire absolute URL in the Request line. I have seen that by setting up a "proxy" configuration that the request is formatted with the entire URL, but I wont be using a proxy.
So, I would like to know if there is some operation that I can do on "oRequest" before executing "send()" that will cause the entire URL to appear in the request.
I need this because the server side is a web service that returns JSON formatted information and it seems to require that the entire URL be passed in the request. I have done this in Perl language using the LWP module and am able to cause the full URL to
appear in the request, but I cant figure out how to do it with MSXML2.ServerXMLHTTP.
Thanks in advance for your help.
View the full article
I am using MSXML2.ServerXMLHTTP in a Jscript like this:
oRequest = new ActiveXObject(MSXML2.ServerXMLHTTP);<br/>
<br/>
oRequest.open("POST", "https://www.mydomain.com/someDirectory/someTransaction?someParameter=someValue", false);
The request line in the HTTP request that goes out on the wire looks like this:
POST /someDirectory/someTransaction?someParameter=someValue HTTP/1.1
But I would like it to look like this:
POST https://www.mydomain.com/someDirectory/someTransaction?someParameter=someValue HTTP/1.1
...that is, with the entire absolute URL in the Request line. I have seen that by setting up a "proxy" configuration that the request is formatted with the entire URL, but I wont be using a proxy.
So, I would like to know if there is some operation that I can do on "oRequest" before executing "send()" that will cause the entire URL to appear in the request.
I need this because the server side is a web service that returns JSON formatted information and it seems to require that the entire URL be passed in the request. I have done this in Perl language using the LWP module and am able to cause the full URL to
appear in the request, but I cant figure out how to do it with MSXML2.ServerXMLHTTP.
Thanks in advance for your help.
View the full article