Alfred’s Computing Weblog

Alfred Java-cored Computing Weblog

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

Advertisements

Written by Alfred

November 6, 2008 at 16:01

Posted in HTML

Tagged with , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: