Welcome Guest Search | Active Topics | Sign In | Register

How to set the request.cookies in WebView_BeforeSendHeaders ?? Options
sexfio1
Posted: Sunday, October 20, 2019 12:05:10 PM
Rank: Member
Groups: Member

Joined: 10/17/2019
Posts: 14
EO.Webbrowser

The e.request.cookies is readonly in WebView_BeforeSendHeaders, then how I can change a new cookie to login the web pages???
If it canot, can JavaScript do this??

THX :-D
sexfio1
Posted: Sunday, October 20, 2019 11:27:57 PM
Rank: Member
Groups: Member

Joined: 10/17/2019
Posts: 14
It would be great if we can set e.request.cookies
selenium can do it
eo_support
Posted: Monday, October 21, 2019 10:54:57 AM
Rank: Administration
Groups: Administration

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

You can add cookies in BeforeRequestLoad event, you can not do it in BeforeSendHeaders event.

Thanks!
sexfio1
Posted: Monday, October 21, 2019 12:45:54 PM
Rank: Member
Groups: Member

Joined: 10/17/2019
Posts: 14
eo_support wrote:
Hi,

You can add cookies in BeforeRequestLoad event, you can not do it in BeforeSendHeaders event.

Thanks!


Ha ha, I got it !

Thank you!

By the way, how to get him back to his original state,That is, clear all cookies already held ?
eo_support
Posted: Tuesday, October 22, 2019 11:29:25 AM
Rank: Administration
Groups: Administration

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

You can use this method to delete cookies in your local cookie jar:

https://www.essentialobjects.com/doc/eo.webengine.cookiemanager.deletecookies.aspx

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.