I'd be happy to!
Code:
cgiPath = "/cgi-bin/SearchEngine/root/sessearch.cgi"
scrName = Request.ServerVariables("URL")
query = Request.ServerVariables("QUERY_STRING")
Response.Write(cgiPath & "?" & query & "&wrap=" & scrName)
Function PrintSearchCode (url)
Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
xml.Open "GET", url, False '-- Error happens here
xml.Send()
Response.write xml.Responsetext
End Function
if query <> "" then
PrintSearchCode (cgiPath & "?" & query & "&wrap=" & scrName)
end if
The error happens in the function, at the "xml.Open" call. I have upadated our xml3 with sp 4, but I still get the error. I am not familiar with XML at all I am afraid...
Basically the function calls the cgi executable script, called "sessearch.cgi". That cgi script returns the webpage results. Normally the .cgi file is called directly from a form Get.
So as far as I can tell, this asp function calls the cgi file via GET, then the script returns the results back to the xml object. Then the xml object prints those results.
But the error happens on the xml.open command.
Any advice would be welcome, thanks.
~Le