|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
XMLHTTP no longer works after updatesrunning IIS 5.0. Ever since we did, one of our web pages no longer works. Here is a snippet of the code that no longer works: Function GetHTML(strURL) Dim objXMLHTTP, strReturn Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP") objXMLHTTP.Open "GET", strURL, False objXMLHTTP.Send "" strReturn = objXMLHTTP.responseBody Set objXMLHTTP = Nothing GetHTML = strReturn End Function function PullChart(indos) Response.Clear Response.Buffer = true Response.ContentType = "application/pdf" Response.AddHeader "Content-Disposition", "attachment;filename=" & indos & ".pdf" Response.BinaryWrite GetHTML("ftp://username:password@192.168.1.19/" & indos & ".pdf") end function Did something change recently that would affect the Microsoft.XMLHTTP object? When we try to pull the PDF file off of our FTP server, the code crashes. Please help!!! Thanks! Lewis. Lewis wrote on Fri, 7 Apr 2006 10:49:02 -0700:
Show quoteHide quote > We recently installed some updates on our Windows 2000 server machine. It I've read plenty about XMLHTTP crashing when it can't connect to the > is running IIS 5.0. Ever since we did, one of our web pages no longer > works. Here is a snippet of the code that no longer works: > > Function GetHTML(strURL) > Dim objXMLHTTP, strReturn > Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP") > > objXMLHTTP.Open "GET", strURL, False > objXMLHTTP.Send "" > > strReturn = objXMLHTTP.responseBody > Set objXMLHTTP = Nothing > > GetHTML = strReturn > End Function > > function PullChart(indos) > Response.Clear > Response.Buffer = true > Response.ContentType = "application/pdf" > Response.AddHeader "Content-Disposition", "attachment;filename=" & indos & > ".pdf" > Response.BinaryWrite GetHTML("ftp://username:password@192.168.1.19/" & > indos & ".pdf") > > end function > > Did something change recently that would affect the Microsoft.XMLHTTP > object? When we try to pull the PDF file off of our FTP server, the code > crashes. > > Please help!!! > > Thanks! > > Lewis. server - check to make sure the server you're contacting is accessible from the IIS machine. I'd also recommend you look at using ServerXMLHTTP instead: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q290761 XMLHTTP is designed for client-side use, and may cause problems in a server-side environment such as ASP. Dan
Kerberos from XP to IIS hosting ASP.NET 2.0 Web Service help
CTL_E_PERMISSIONDENIED IISAdmin on localhost Can't import certificate to IIS Multiple Virtual Sites on One Server Running on Port 443 Common Name question Can't 'get' from ftp folder viewing text files over internet 401.1 IE Error Security trimming with impersonation |
|||||||||||||||||||||||