Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is GET method is faster than POST? [duplicate]

Tags:

forms

php

Possible Duplicate:
Why GET method is faster than POST?

I use both methods for transfering data but not decide which is faster and recommended.

like image 810
Ashvin Avatar asked Dec 23 '10 19:12

Ashvin


People also ask

Is GET method faster than POST?

GET is slightly faster because the values are sent in the header unlike the POST the values are sent in the request body, in the format that the content type specifies.

Which is better GET or POST method?

POST request is comparatively more secure because the data is not exposed in the URL bar. Request made through GET method are stored in Browser history. Request made through POST method is not stored in Browser history. GET method request can be saved as bookmark in browser.

Which HTTP method is faster?

In particular, HTTP/2 is much faster and more efficient than HTTP/1.1. One of the ways in which HTTP/2 is faster is in how it prioritizes content during the loading process.

Why POST method is preferred over GET?

Data sent by the POST method goes through HTTP header so security depends on the HTTP protocol. You have to know that your information is secure by using secure HTTP. This method is a little safer than GET because the parameters are not stored in browser history or in web server logs.


1 Answers

GET may be considered slightly faster in that it contains less overhead, but the difference should be essentially negligible. The difference between the two is based on other factors. There's lots of discussion here.

like image 182
David Avatar answered Sep 19 '22 21:09

David