|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
XMLHTTP Object
Does anyone have any ideas why when I access the XMLHTTP Object using the following code nothing happens?
Code:
Response.Buffer = True
Dim objXMLHTTP, xml
' Create an xmlhttp object:
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
' Or, for version 3.0 of XMLHTTP, use:
' Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
' Opens the connection to the remote server.
xml.Open "GET", "http://www.4Guysfromrolla.com/", False
' Actually Sends the request and returns the data:
xml.Send
'Display the HTML both as HTML and as text
Response.Write "<h1>The HTML text</h1><xmp>"
Response.Write xml.responseText
Response.Write "</xmp><p><hr><p><h1>The HTML Output</h1>"
Response.Write xml.responseText
Set xml = Nothing
I have talked with the host and they have no clue but assure me that the object is installed. |
|
#2
|
|||
|
|||
|
well it worked like a charm on my test server. I received this:
http://rabbit.letstalkasp.com/test.asp I think your host hasn't installed the XMLHTTP object. It is automatically installed with IE 5.0, I believe but i am not sure about that.
__________________
- Rogier Doekes |
|
#3
|
||||
|
||||
|
Turns out it was a lag issue with the host. I have fixed this issue now.
Thanks, |
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > XMLHTTP Object |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|