UncleScooby
Programmer
I am getting the following error:
Response object error 'ASP 0156 : 80004005'
Header Error
/iibs/testa.asp, line 31
The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.
It is the response.contenttype line of code that seems to be triggering it in the code below. (I have loaded ms data access components 2.6 on the server).
Any help is sincerely appreciated.
Uncle S.
<%
Function GetHTML(strURL)
Dim objXMLHTTP, strReturn
Set objXMLHTTP = SErver.CreateObject("Microsoft.XMLHTTP"
objXMLHTTP.Open "GET", strURL, False
objXMLHTTP.Send
strReturn = objXMLHTTP.responseText
Set objXMLHTTP = Nothing
GetHTML = strReturn
End Function
' Write it:
Response.Write GetHTML("
' Download it:
Response.ContentType = "application/x-msdownload"
Response.AddHeader "Content-Disposition", "filename=Something.asp"
Response.BinaryWrite GetHTML("
%>
Response object error 'ASP 0156 : 80004005'
Header Error
/iibs/testa.asp, line 31
The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.
It is the response.contenttype line of code that seems to be triggering it in the code below. (I have loaded ms data access components 2.6 on the server).
Any help is sincerely appreciated.
Uncle S.
<%
Function GetHTML(strURL)
Dim objXMLHTTP, strReturn
Set objXMLHTTP = SErver.CreateObject("Microsoft.XMLHTTP"
objXMLHTTP.Open "GET", strURL, False
objXMLHTTP.Send
strReturn = objXMLHTTP.responseText
Set objXMLHTTP = Nothing
GetHTML = strReturn
End Function
' Write it:
Response.Write GetHTML("
' Download it:
Response.ContentType = "application/x-msdownload"
Response.AddHeader "Content-Disposition", "filename=Something.asp"
Response.BinaryWrite GetHTML("
%>