I am not smart
I am not smart

Reputation: 1441

HTTP GET request with locale

Sometimes when I navigate to a website, the GET request is:

GET /se/ HTTP/1.1

How is the locale being added instead of just the root? From what I see it is the first request I send to the server. Is my browser adding this in? If so, how does it know to add it for some sites and not others?

Upvotes: 1

Views: 1112

Answers (2)

npcode
npcode

Reputation: 1390

I guess the server redirected your request to '/se/' based on the your preferred language that is detected from Accept-Language header in your request.

Upvotes: 1

Daenyth
Daenyth

Reputation: 37441

The server can have whatever rules it likes to do this. Generally, as @npcode mentioned, Accept-Language should be used, but it's possible that the website in question is directing you there based on ip geocoding rules. If you connect via a proxy in another country, does it still happen?

Upvotes: 0

Related Questions