![]()
|
|
Toms side of the story?
|
|
|||
![]() |
More Geek - 27/02/2009 20:15:54 So yesterday I noticed that my postcode parsing script for my customers system was broken. It uses MSXML / XMLHTTP in ASP to post information to an external provider who check the legitimacy of the request using the Referer field in the request. As my request is a new request and has no referer I was using setRequestHeader to force the referer to the correct value. A few days ago I rebooted my server and since then the system broke. I spent a few hours today looking at wireshark logs and noticed the referer was missing. It took another 30 minutes of googling to find someone in the same boat as me: http://blog.foxxtrot.net/2009/01/resolution-sort-of-to-the-serverxmlhttprequest-issue.html It appears that Microsoft removed another function of the setRequestHeader setting it and didnt note that they had ALSO removed the ability to set referer :(. So anyone who wants to do this still, replace: Set xml = Server.CreateObject("Microsoft.XMLHTTP")With Set xml = Server.CreateObject("WinHttp.WinHttpRequest.5.1")Hope this helps other people who find this via google :) MSXML XMLHTTP Referer referrer header setRequestHeader stopped working. Referer not sent. Post A Comment Delete Entry Edit Entry A system by www.fruk.net - You are currently a guest
|
|||||