This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
When we enter the URL of any enterprise application which is getting used all over the world, it will be redirected to country domain like (www.google.co.in). How this is happening? From where they are getting the information about the country of the end users? is it from the browser request to the server or from any Web server to which the request is getting pointed.
Please post your ideas and drop a note regarding which is better to get such info in order to redirect the url.
They know the IP for your machine (they need this so they can send you whatever you are requesting). From that, it is not too hard to figure out a general idea of where you are.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Joined: Aug 18, 2010
Thanks for your response. I agree that we can get the ip address of the client and from there we can get all the required details, but please consider me as fresher and post your ideas like how they are gettign the IP address from the request and how they are obtaining the locale information. Just by giving any sample or example.
I am trying to understand the back end logic rather having the assumptions.