What are the differences between GET and POST service methods?

A GET request is a request to get a resource from the server. Choosing GET as the "method" will append all of the data to the URL and it will show up in the URL bar of your browser. The amount of information you can send back using a GET is restricted as URLs can only be 1024 characters. A POST request is a request to post (to send) form data to a resource on the server. A POST on the other hand will (typically) send the information through a socket back to the webserver and it won't show up in the URL bar. You can send much more information to the server this way - and it's not restricted to textual data either. It is possible to send files and even binary data such as serialized Java objects!

Showing Answers 1 - 22 of 22 Answers

Arundathi

  • Jul 1st, 2005
 

POST request are not idempotent, which means that they are not safely repeatable; and web browsers treat them specially. For example, a browser cannot bookmark or, in some cases, reload a POST request. 
On the other hand, GET requests are idempotent, so they can safely be bookmarked, and a browser is free to issue the request repeatedly without necessarily consulting th user.

raja

  • Jul 16th, 2005
 

Get method doesnot contain any security because it display all information in url bar.But Post got security because it send internally pockets. 
 
Get is faster than Post methods.

  Was this answer useful?  Yes

Pramod Kumar

  • Jul 30th, 2005
 

The limit of data sent throght GET is upto 240 characters.

  Was this answer useful?  Yes

Veeru

  • Sep 8th, 2005
 

Get 
By using Get method in Session managment such as URL-rewriting we cannot get the data sent by URL-rewriting 
Post 
You can use post method without worrying about URL-rewriting.

  Was this answer useful?  Yes

gokulakrishnan

  • Sep 19th, 2005
 

GET method is used for getting the information that is request on the url but we can give 255 characters on the url this is a limit and also it is visible to all so we cannot give our password on the url.but POST method is used to posting megabytes of information there is no limits.In real time projects we use post() method this is the secret one.depends upon the applications we use both.

  Was this answer useful?  Yes

pulipaka

  • Oct 6th, 2005
 

1.I have doubt abt the args.length,args.length(),args[args.length-1],[args.length-1].how to read the command line arguments by using the above methods.

  Was this answer useful?  Yes

Tharani devi

  • Oct 13th, 2005
 

1.Get method is used to retrive data from the resources.Post method is used to store the data into the resources.2.In Get method data is send via URL.So,the transaction is very fast.In Post method data is send as packets via sockets.So the process is very slow.3.In Get method the query string is limited.Upto 255 chars only we can send.In Post method there is no such limitations.4.Get method Unsecured. Since,any one can see the data in the address bar.Post method is very secure.

  Was this answer useful?  Yes

sudhakar

  • Oct 15th, 2005
 

In Get method, the parameters are sent through the request URLs. In post method the paremeteres are embaded within the method.

  Was this answer useful?  Yes

phanidhar

  • Oct 18th, 2005
 

in GET ther is restriction of sending data.

if u want to send more data u should go for POST.

  Was this answer useful?  Yes

ramya

  • Jun 29th, 2007
 

GET:
GET is used to get data.
In this method request parameters are transmitted in the url.
GET is idempotentent(doing the same thing without any side effects).
GET transmits limited amount of data.
If we write some confidential information(like password),it can be visible, because request parameters are transmitted within the url. So security will not be provided.
POST:
POST is used to post data.
In POST() request parameters are transmitted within the body of the request.

  Was this answer useful?  Yes

sampra

  • Mar 4th, 2008
 

get all info go in query string,post with req body.get is not secure post is secure
get send limited ddata post send lot of data arnd 2 mb

  Was this answer useful?  Yes

Rudra_java

  • Jan 16th, 2009
 

In case of GET(): data will be append to the URL of the browser if there is any sensitive date it will be view easily. we can't sent data properly, if there is more amount of data. It is faster than POST().

In case of POST():Browser sent the request as part of request body and sent a post request.
All the problems arrived by GET() will be solved. But it takes some time to load the URL. It is slower than GET().

  Was this answer useful?  Yes

1) Get is Faster than Post..

2) Get Is Idempotent i.e same work can be done again and again without harming database...

3) Amount of data send is limited to few characters only and are visible in address bar, so sensitive data cannot be sent via GET.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions