Welcome Guest Search | Active Topics | Sign In | Register

webview request can not set the "Referer" header Options
Levi Lai
Posted: Saturday, October 1, 2016 9:14:55 AM
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!
eo_support
Posted: Monday, October 3, 2016 11:10:01 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.