[Valid RSS]
Get Firefox!

Toms side of the story?
So far today (04/09/2010) I have made enough to buy 1352 cups of tea from Godalming College!
The time in the UK is currently 7:51.
I have been called 0 times today.
I was last called 13 hours ago.
I have made 0 calls today.
I last called someone 38 hours ago.

My cellphone last moved to , 72 minutes ago.
Todays Log



Log In
Sign Up

Entries
23/08/2010
23/03/2010
13/01/2010
30/12/2009
24/11/2009
15/10/2009
29/09/2009
29/09/2009
21/08/2009
31/07/2009
18/07/2009
09/07/2009
13/06/2009
13/06/2009
06/05/2009
15/04/2009
06/03/2009
-->27/02/2009
11/02/2009
18/01/2009
07/01/2009
15/12/2008
11/12/2008
07/12/2008
05/12/2008
View all entries
An old friend
Sisters Site*
Ryans Site*
=>Jades Site!<=
*Rude & Offensive Content
5 P /-\ |\/| trap



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
Name:
Comment:



Delete Entry Edit Entry

A system by www.fruk.net - You are currently a guest
Search Entries:

Page creation time: 1 second 731 milliseconds