Welcome Guest Search | Active Topics | Sign In | Register

how to fake referer header EO web control? Options
tuan
Posted: Sunday, November 2, 2014 10:01:45 PM
Rank: Member
Groups: Member

Joined: 10/9/2014
Posts: 19
hey! i have a questtion!
how to fake referer header in EO web control?
i'm use C#! thanks
eo_support
Posted: Sunday, November 9, 2014 7:37:10 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,273
Hi,

Sorry about the delay. If you meant EO.WebBrowser, then you can handle the WebView's BeforeRequestLoad event, then set the "Referer" header entry in the event handler:

Code: C#
e.Request.Headers["Referer"] = your_referer_url;


Hope this helps.

Thanks!
tuan
Posted: Wednesday, May 6, 2015 5:02:29 AM
Rank: Member
Groups: Member

Joined: 10/9/2014
Posts: 19
eo_support wrote:
Hi,

Sorry about the delay. If you meant EO.WebBrowser, then you can handle the WebView's BeforeRequestLoad event, then set the "Referer" header entry in the event handler:

Code: C#
e.Request.Headers["Referer"] = your_referer_url;


Hope this helps.

Thanks!


where's add this code?
eo_support
Posted: Wednesday, May 6, 2015 9:13:16 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,273
Hi,

The original reply has already answered your question --- you need to handle the WebView's BeforeRequestLoad event.

Thanks
tuan
Posted: Wednesday, May 6, 2015 9:53:47 AM
Rank: Member
Groups: Member

Joined: 10/9/2014
Posts: 19
eo_support wrote:
Hi,

The original reply has already answered your question --- you need to handle the WebView's BeforeRequestLoad event.

Thanks


i know handle the webview before but i aske you: where add this code?
what's webview event for add this code?

why you can not add this feature like: webView1.CustomUserAgent = "user-agent string";
??
eo_support
Posted: Wednesday, May 6, 2015 10:44:45 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,273
tuan wrote:
i know handle the webview before but i aske you: where add this code?
what's webview event for add this code?

why you can not add this feature like: webView1.CustomUserAgent = "user-agent string";
??


Pleasse seek other resource on how to handle an event in .NET. This is very basic .NET programming skills that you need to know in order to use our product. We are not in a position to fill such gap for you. We tell you which event to handle and you will need to work out the rest yourself.


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.