Solved

Set Referer in MSXML2.ServerXMLHttp Object

Posted on 2011-09-06
4
1,783 Views
Last Modified: 2012-05-12
I need make a ASP page that post some data to a webpage that check HTTP_REFERER server variables.

I used MSXML2.ServerXMLHttp object to make a make the request and setRequestHeader "Referer", Some_URL

the http request made never contain the "Referer" header. I have check it by using a script that just reply the HTTP_REFERER and a HTTP sniffer.

How to spoof the  "Referer" header?
0
Comment
Question by:wtyeung
4 Comments
 
LVL 19

Expert Comment

by:Bardobrave
ID: 36488417
I'm not very sure of being understanding you, but there is something that sounds strange to me:

I think you are posting a header to an asp page where you get the http_referer server variable.

It's quite probable that the value you are posting won't be vailable until after the called page is executed, and so the referer is retrieved before you overwrite it's value.
0
 

Author Comment

by:wtyeung
ID: 36488894
No,
the problem is solved finally. it has to use WinHttp.WinHttpRequest.5.1 object instead.
setting "Referer" header on MSXML2.ServerXMLHttp is of no use, it doesn't appear in the http request.
0
 

Accepted Solution

by:
ee_auto earned 0 total points
ID: 37218647
Question PAQ'd and stored in the solution database.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question