Welcome Guest Search | Active Topics | Sign In | Register

Custom headers on the request Options
ozheek
Posted: Saturday, October 29, 2016 4:20:07 PM
Rank: Advanced Member
Groups: Member

Joined: 8/29/2016
Posts: 64
Hello,

I want to add custom headers and found that I can use BeforeSendHeaders event for that. But when I am trying to modify e.Request.Headers I am getting exception "Additional information: This headers collection can not be modified because the associated Request object is readonly.".

How I can add custom headers to the request?
eo_support
Posted: Sunday, October 30, 2016 9:20:21 AM
Rank: Administration
Groups: Administration

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

You can use BeforeRequestLoad event to attach custom headers.

Thanks!
ozheek
Posted: Sunday, October 30, 2016 9:35:45 AM
Rank: Advanced Member
Groups: Member

Joined: 8/29/2016
Posts: 64
Thank you for the answer. I can't use it for Referer header. Meanwhile it works for any other customer header.

Do you have any ideas how to use it for Referer?
eo_support
Posted: Sunday, October 30, 2016 9:36:40 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
You can not override Referer header. That header is always internally set by the browser engine.
ozheek
Posted: Sunday, October 30, 2016 9:57:32 AM
Rank: Advanced Member
Groups: Member

Joined: 8/29/2016
Posts: 64
It's quite important question for us. Maybe there is another way to do it? Can you give any suggestions?

If it's not possible at all, maybe you can add this feature?
eo_support
Posted: Monday, October 31, 2016 8:50:15 AM
Rank: Administration
Groups: Administration

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

We do not have any plan to add that in the near future. This is one of the special header that the browser engine will always override. This is just one of numerous "special" things that does not follow the "normal" code flow. Changing those behaviors requires significant amount of change to the browser engine which would carry a high risk of breaking something else. As such we are not planing to add this at this moment. Sorry about it!

Thanks!
ozheek
Posted: Monday, October 31, 2016 9:26:26 AM
Rank: Advanced Member
Groups: Member

Joined: 8/29/2016
Posts: 64
Oh, it's really sad. I moved to EO from another component. Configured everything, which I found much more better than many other componets and I can't change the Refer header, I need to find a solution for that :)


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.