W3C home > Mailing lists > Public > www-talk@w3.org > November to December 2008

RE: Change language. POST or GET

From: Mike Dierken <dierken@gmail.com>
Date: Sun, 21 Dec 2008 11:53:53 -0800
To: "'Carlos Tejo Alonso'" <carlos.tejo@fundacionctic.org>, <www-talk@w3.org>
Message-ID: <08277406E25D4CD590BC93014B9BDE58@mercury>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:29 GMT