Page 1 of 1
Sequence headers in ICefRequest
Posted: Mon Jan 31, 2022 11:03 pm
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.
Re: Sequence headers in ICefRequest
Posted: Tue Feb 01, 2022 8:43 am
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
Re: Sequence headers in ICefRequest
Posted: Tue Feb 01, 2022 12:25 pm
by Haku
I found the problem. ICefStringMultimap sorts headers alphabetically. But why?
Re: Sequence headers in ICefRequest
Posted: Wed Feb 02, 2022 9:36 am
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.