RE: Change language. POST or GET

If there are two variants of the website, one for each language, and the
user would simply like to view the website in one of the two languages, then
using a link to point to the particular language variant would be fine. The
browser would then use a GET request to retrieve that particular page for
that language. The links on that language-specific page would continue to
point to other language-specific pages.
It is also possible that the website could detect a request header named
"Accept-Language" and respond with a page appropriate to the languages
specified in that header. 
 
If you are trying to send a single request that rewrites every html file
stored on the server to be translated to a different language - that's a
very different beast.


  _____  

From: www-talk-request@w3.org [mailto:www-talk-request@w3.org] On Behalf Of
Carlos Tejo Alonso
Sent: Sunday, December 21, 2008 9:27 AM
To: www-talk@w3.org
Subject: Change language. POST or GET



Hello,

first of all, apologies if it is not the correct place to ask for this
issue.

I want to know how is the correct way to change the language of a website:
- a link that invokes a HTTP GET method
- a button that invokes a HTTP POST method

AFAIK:

- GET should not be used for operations that cause side-effects.
- The GET method means retrieve whatever information

So, how can we consider change the language of a website?

What do you think?

Best regards,

Carlos Tejo 

Received on Sunday, 21 December 2008 19:54:27 UTC