W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2005

[whatwg] <a href="" ping="">

From: Mike Dierken <mdierken@hotmail.com>
Date: Wed, 26 Oct 2005 20:29:43 -0700
Message-ID: <BAY101-DAV17CF6817AAF911CE1FA1ABD8680@phx.gbl>

> > For example, which (if any) of the following two FORMs is 'safe':
> > 
> > <form method='GET' action='../cgi-bin/nifty.cgi'>  <input 
> > type='submit' value='go' /> </form>
> > 
> > <form method='POST' action='../cgi-bin/nifty.cgi'>  <input 
> > type='submit' value='go' /> </form>
> > 
> 
> I don't see anything particularly unsafe about either of them, but I
> think I can see what you're getting at.
> 
> Perhaps "without side-effects" or "idempotent" might be better
> descriptions than "safe"? The above two forms both look like they're
> doing exactly what they were intended to do, and therefore don't seem
> "unsafe" at all...

I'm pretty sure I'm doing a very poor job communicating what I'm thinking...
So thanks for sticking with this. 

Each of the HTTP methods GET, PUT and DELETE are idempotent (repeating them
results in the same state).
Only GET is safe (no data is intended by the client to be modified).
Received on Wednesday, 26 October 2005 20:29:43 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:43 UTC