transMorphic - tech
Mike Roberts' blog on Software and Technology














Subscribe to "transMorphic - tech" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.
 

 

14 February 2003
 

Little web app tip

When to use 'get' and when to use 'post' in web pages? As a rule of thumb:

  • If the request will cause a change of state on the web server, use 'post' (its safer as it avoids replay conditions caused by bookmarking or web-spiders)
  • Otherwise use 'get'

But why use 'get' at all? Because if you have a lot of links on a page that are not dependent on form fields, it saves overhead on using form code (You can just put full parameterised links in the href's instead). Also, it means users can bookmark (e.g. useful for searches)

The wonders of pairing with Joe :)


1:59:58 PM    


Click here to visit the Radio UserLand website. © Copyright 2003 Mike Roberts.
email : blog @ tmorph . com

Last update: 16/03/2003; 00:29:03.
This theme is based on the SoundWaves (blue) Manila theme.
February 2003
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28  
Jan   Mar