Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting Accept-Language in COM-embedded IE

I have an IE instance embedded in my C application using COM. With IWebBrowser2.Navigate I can pass headers to be sent along with the request, except apparently "Accept-Language". It seems the language settings from IE itself always override the value I pass in for that header. Is there any way around this?

like image 523
coderanger Avatar asked Mar 16 '09 19:03

coderanger


1 Answers

I don't think IE allows you to customize the settings so much. Never used it in C, but Delphi has a wrapper class to IWebBrowser2 (TWebBrowser), and most settings used by the component are global. I mean, the same for standard IE and embedded IE.

Maybe you can change it on Internet Options or even modify some registry keys, but be aware that it will also apply globally (embedded or not).

like image 70
Doug Avatar answered Oct 23 '22 05:10

Doug