Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Sequence headers in ICefRequest

Post Reply
Haku
Posts: 12
Joined: Sat Jan 29, 2022 10:33 pm

Sequence headers in ICefRequest

Post by Haku »

Why can't I change the header sequence in ICEfRequest? For example, I want to set the User-Agent before the content-type, but I can't and the header sequence is too different from what I have set.
User avatar
salvadordf
Posts: 4580
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Sequence headers in ICefRequest

Post by salvadordf »

Perhaps Chromium modifies the headers internally.

We can only use the available API to make requests :
https://magpcss.org/ceforum/apidocs3/projects/(default)/CefURLRequest.html
https://magpcss.org/ceforum/apidocs3/projects/(default)/CefRequest.html
Haku
Posts: 12
Joined: Sat Jan 29, 2022 10:33 pm

Re: Sequence headers in ICefRequest

Post by Haku »

I found the problem. ICefStringMultimap sorts headers alphabetically. But why?
User avatar
salvadordf
Posts: 4580
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Sequence headers in ICefRequest

Post by salvadordf »

The code in uCEFStringMultimap.pas doesn't have any mention to any sorting method.

Chromium is the responsible of handling the headers in the string multimap.
Post Reply