Rank: Newbie Groups: Member
Joined: 9/16/2016 Posts: 3
|
Request req = new Request(ms.PatchUrl("/test1.do")); req.Method = "POST"; req.Headers.Add("X-Requested-With", "XMLHttpRequest"); req.Headers.Add("Origin", ms.PatchUrl("")); req.Headers.Add("Referer", ms.PatchUrl("/test.do")); <<-----the referer will not send in fact
the Referer header can not be set?? if i want to do so, how can i make that? please help, thanks!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
I do not believe you can override Referer. The browser engine will always set it to the "correct" value before sending it to the server.
Thanks!
|