Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi there, I'm new in the ASP. I ne

Status
Not open for further replies.

Angellin

Programmer
Jun 5, 2002
9
SG
Hi there,
I'm new in the ASP. I need to send a request to the other party Url. The Url start with "Https:\". I can manage to send the request over but I can't read the link that they send to me.

I had try the ResponseText, ResponseBody for to read the link

For the ResponseText, my script giving me error

msxml3.dll error 'c00ce56e'
System error: -1072896658.

For the ResponseBody, I get "????????????????" from the result.
Any ideas with this, I had try a lot of method already. Can you kindly guide me because maybe you had more experience than in the HTTP POST and the reading result portion?

Hope to hear good news from you soon........ :(
 
What exactly are you trying to do?

If you are feeding a URL beginning with "https:\" into the open method of the XMLHTTP/ServerXMLHTTP object it won't work.

It should be in the format
Not sure if SSL would work, though I imagine so.

After the open method, when you call the send method (aysnchronously in ASP) the XMLHTTP/ServerXMLHTTP object will get a HTML page back from it's request (or whatever document type you requested).

You will already know the URL of the page returned, as you used it in your open method call.

You CAN however retrieve the response status and text, using the statusText and responseText methods respectively. Any of the other response body retrieval methods (responseBody, responseXML, responseStream) will return objects, from memory.

Simple example:

<%@ language=&quot;javascript&quot; enablesessionstate=&quot;false&quot;%>
<%try{
var http = Server.CreateObject(&quot;MSXML2.XMLHTTP&quot;);
http.open(&quot;GET&quot;, &quot; false);
http.send();
Response.write(http.statusText + &quot;<br/>&quot;);
Response.write(http.responseText);
http = null;
}catch(e){Response.write(e.description);}
%>

codestorm
Newbie Life Member.
Fire bad. Tree pretty. - Buffy
<insert witticism here>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top