willa666
asked on
works for msxml3 but not msxml4
I am trying to use this ASP code on a server with msxml4 installed and i get athis error message"The object does not exisits"
If i try the same code on a server with msxml3 installed then it works.
is their somthing silly that i am missing?
<%
dim objXMLHTTP
dim SEARCH_STR
IF Request("WORD") = "" THEN
SEARCH_STR = "PSP"
ELSE
SEARCH_STR = Request("WORD")
END IF
URL = "http://search.ebay.com/"& SEARCH_STR
Set objXMLHTTP = Server.CreateObject("Micro soft.XMLHT TP")
objXMLHTTP.Open "GET", URL, false
objXMLHTTP.Send
start = InStr(objXMLHTTP.responset ext, "<html>")
finish = InStr(objXMLHTTP.responset ext, "</html>")
amount = finish - start
extract = Mid(objXMLHTTP.responsetex t,start,am ount)
Response.Write URL
Response.Write extract
Set objXMLHTTP = Nothing
%>
If i try the same code on a server with msxml3 installed then it works.
is their somthing silly that i am missing?
<%
dim objXMLHTTP
dim SEARCH_STR
IF Request("WORD") = "" THEN
SEARCH_STR = "PSP"
ELSE
SEARCH_STR = Request("WORD")
END IF
URL = "http://search.ebay.com/"& SEARCH_STR
Set objXMLHTTP = Server.CreateObject("Micro
objXMLHTTP.Open "GET", URL, false
objXMLHTTP.Send
start = InStr(objXMLHTTP.responset
finish = InStr(objXMLHTTP.responset
amount = finish - start
extract = Mid(objXMLHTTP.responsetex
Response.Write URL
Response.Write extract
Set objXMLHTTP = Nothing
%>
ASKER
Hi German_Rumm
Now it reads
Set objXMLHTTP = Server.CreateObject("Msxml 2.XMLHTTP. 4.0")
But i get this error message
msxml4.dll error '800c0005'
The system cannot locate the resource specified.
/index3.asp, line 33
Now it reads
Set objXMLHTTP = Server.CreateObject("Msxml
But i get this error message
msxml4.dll error '800c0005'
The system cannot locate the resource specified.
/index3.asp, line 33
using Msxml2.XmlHttp actually piggybacks off the wininet.dll
on the server, you should use Msxml2.ServerXMLHTTP and run the proxycfg.exe to set the proxy settings if there is one. the code remains the same with some extra features
how to identify errors with ServerXMLHTTP (also applies to XMLHTTP)
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q299566&ID=KB;EN-US;Q299566
ServerXMLHTTP
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/xmobjxmldomserverxmlhttp.asp
on the server, you should use Msxml2.ServerXMLHTTP and run the proxycfg.exe to set the proxy settings if there is one. the code remains the same with some extra features
how to identify errors with ServerXMLHTTP (also applies to XMLHTTP)
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q299566&ID=KB;EN-US;Q299566
ServerXMLHTTP
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/xmobjxmldomserverxmlhttp.asp
ASKER
Hi b1xml2
So what do you think is happening for this error to occure?
So what do you think is happening for this error to occure?
ASKER
I have got it working again, but i have changed it to
Server.CreateObject("WinHt tp.WinHttp Request.5. 1")
Server.CreateObject("WinHt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
cool well i guess that sorts out that !
Try
Server.CreateObject("Msxml
---
German Rumm.