Quantcast
Channel: Questions in topic: "httpwebrequest"
Viewing all articles
Browse latest Browse all 190

Why current culture is always en-US and what is the alternative ?

$
0
0
Hello everybody, I'm using the WWW class to perform a https request and I don't specify accept-language in the headers. My problem is: the server receives always en-US as Accept-Language in the headers of the request, regardless of the real country of the user. I want to retrieve the currentCulture of the user and pass it to the WWW class. But I don't know how to retrieve it ! I read in another threads that System.Globalization.CultureInfo.CurrentCulture and System.Threading.Thread.CurrentThread.CurrentCulture are set to "en-US" by default. Do you know another way to retrieve the culture code ? PS: I would like to avoid using a geolocation plugin as much as I can because our server relies on currentculture instead of ips to detect the location of the user. It would represent a heavy update to filter by ip rather than culture code. Thank you for your help guys !

Viewing all articles
Browse latest Browse all 190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>