Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Set Referer in MSXML2.ServerXMLHttp Object

Posted on 2011-09-06
4
Medium Priority
?
1,871 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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

604 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