I have an ASP page that fetches a PDF image from another URL and streams it to the browser. It appears to have stopped working somewhat recently (there were a few dozen Windows and .NET security patches installed on 8/23 which I think might be the cause).
The code is dead simple, and it works fine in Chrome. In IE8, my page loads fine and no errors are being logged. But the PDF data is not getting streamed. Can anyone see anything that might be causing IE an issue?
Dim objRequest
Set objRequest = Server.CreateObject("MSXML2.ServerXMLHTTP.6.0")
objRequest.open "GET", otherUrl, False
objRequest.send
if left(objRequest.status,1) = 4 or left(objRequest.status,1) = 5 then 'their URL had a problem
'return error to web page; this line is not hit
else
Response.ContentType = "application/pdf"
Response.BinaryWrite objRequest.responseBody
end if
Set objRequest = Nothing
I have left the part where I construct otherUrl
but that seems to be working fine, I can hit the URL and get a PDF. I have played around with versions of the MSXML object but this seems to be the correct one to use and the ProgId is definitely available.
Help!
UPDATE with requested info: IE8, Adobe Reader X. Server OS is Windows Server 2k8 R2 Standard. IE9, Firefox and Chrome all seem to work fine for this.