Solved

Set Referer in MSXML2.ServerXMLHttp Object

Posted on 2011-09-06
4
1,808 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

717 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