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?
+1
A:
Have you tried callling SetThreadLocale? Maybe IE ignores the header in favor of the user's language settings.
Ben Straub
2009-05-29 13:18:01
A reasonable suggestion, but no, IE doesn't try to guess from the Thread Locale.
EricLaw -MSFT-
2009-06-26 05:07:36
+1
A:
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).
Doug
2010-01-30 10:42:19