Configuring Accept-Language in COM Embedded IE

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

+6
c internet-explorer com
source share
2 answers

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

You can probably change it in Internet Options or even change some registry keys, but keep in mind that it will also be applied globally (built-in or not).

+2
source share

Have you tried calling SetThreadLocale ? IE may be ignoring the header in favor of custom language settings.

+2
source share

All Articles