Tuesday, September 20, 2005

Difference between get() and post() methods ?

GET is used to get something back from the server.

With POST you can request something at the same time send form data to the server

If you are using GET method you are limited to a maximum of 2048 characters(Minus the number of characters in the actual path)

POST is however not limited by the size of the URL for submitting name/value pairs, because they are transferred in the Header and not the URL.

Note:

Internet Explorer has a maximum URL length of 2083 characters, with a maximum path length of 2048 characters. This limit applies to both GET and POST.

The data you send with the GET is appended to the URL up in the browser bar, so whatever you send is exposed. Hence it is a security threat.

0 Comments:

Post a Comment

<< Home