|
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
|
|
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!
|
|
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?
|
|
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
|
|
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"; ??
|
|
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.
|
|