问题
I am trying to use this method:
GeckoMIMEInputStream postdata = new GeckoMIMEInputStream();
postdata.AddHeader("Accept-Language", "ru,en-us;q=0.7,en;q=0.3");
browser.Navigate(someurl, flags, referer, postData);
but it adds "ru,en-us;q=0.7,en;q=0.3" to already existing "Accept-Language" string! How to override?
回答1:
i found it, to change accept_languages:
GeckoPreferences.User["intl.accept_languages"] = "ru";
来源:https://stackoverflow.com/questions/9739406/how-to-override-headers-in-geckofx