Alfred’s Computing Weblog

Alfred Java-cored Computing Weblog

Posts Tagged ‘HTML

Html Form | GET vs POST

leave a comment »

Some simple stuff that a lot developers may mixup / confuse about — POST vs GET.

POST and GET are the most common use FORM submittion method used in html, as long as you’re working / doing in web application; you cant runaway from it.

Here is the simple comparison:

POST

  1. Form data will appear within a message body.
  2. More functionality: retrieves, stores, updates data, makes modifications to databases, and so on.
  3. Not cacheable.
  4. Can buffer long URLs.
  5. Considered more secure.

GET

  1. Form data is encoded by the browser into a URL.
  2. Best used for retrieving data.
  3. Cacheable.
  4. Cannot buffer long URLs.
  5. Considered less secure.

References:

1. http://www.peachpit.com/guides/content.aspx?g=webdesign&seqNum=69

2. http://www.cs.tut.fi/~jkorpela/forms/methods.html

Written by Alfred

November 6, 2008 at 16:01

Posted in HTML

Tagged with , , ,