what is the difference between GET and POST?
Answers were Sorted based on User's Feedback
Answer / lakum
Get method is default method In this data is send with URL
Not a secure manner.
In Post method data send in body portion
| Is This Answer Correct ? | 301 Yes | 42 No |
Answer / deepinder
In GET method
- data is submitted as a part of url
- data is visible to the user
- it is not secure but fast and quick
In POST method
- data is submitted as a part of http request
- data is not visible in the url
- it is more secure but slower as compared to GET
| Is This Answer Correct ? | 208 Yes | 9 No |
Answer / nikunj
GET :
- GET method have not security because of data view in
addressbar. For ex: we can not use this method for checking
login
- We can bookmark link with this method
- Server can log all action
- because of server log, we can pass 255 char. as query
string
POST:
- POST method have security of data.
- We can not bookmark page link
- We can pass unlimited data by this method as query string
| Is This Answer Correct ? | 149 Yes | 16 No |
Answer / uttam thakor
The method attribute specifies the HTTP method to use when
sending the request. If unspecified, then the value of
?GET?, (default) is assumed, unless the submission of
multipart/form-data is encountered, in which case the
implied method will be ?POST?.
GET form contents are passed as part of the URL, as a QUERY
STRING.
POST form contents are passed to the script as an input file
As a result, much more form data can be passed, since you
can't run into the limit on the length of a URL or the
length of a command line or command line argument on the
server.
| Is This Answer Correct ? | 113 Yes | 28 No |
Answer / bijaya
GET :
A : http Request AS GET may gets fails, if exceed certain
length in request URI as it is passed as query string
B : uploading files through input type file not possible
C : Chances for Data lost after server encoding
POST :
A : It does not fails in http Request AS POST
B : uploading files through input type file is possible
C : Data does not lost after server encoding
| Is This Answer Correct ? | 41 Yes | 13 No |
Answer / shivanshu
In GET method
- data is submitted as a part of url
- data is visible to the user
- it is not secure but fast and quick
-It use Stack method for passing form variable
- it can store only 18 form variale
In POST method
- data is submitted as a part of http request
- data is not visible in the url
- it is more secure but slower as compared to GET
- it use heap method for passing form variable
- it can post unlimited form variable
| Is This Answer Correct ? | 29 Yes | 4 No |
Answer / waqas
GET
GET is small and can be sent quickly
a lot of devices - such as mobile devices can send get
requests easily and thus GET is excellent for REST
apis(webservice)
GET can be used with POST
GET can be Bookmarked in a browser
GET method is default method
We have to encode URL if we
POST
For sending secure information POST is prefered
GET url can be copied and pasted in a messenger - and your
friend will see the same page - this is impossible to do
with post
We can pass unlimited data by this method as query string
| Is This Answer Correct ? | 25 Yes | 11 No |
Answer / 111
GET :
- GET method have not security because of data view in
addressbar. For ex: we can not use this method for checking
login
- We can bookmark link with this method
- Server can log all action
- because of server log, we can pass 255 char. as query
string
POST:
- POST method have security of data.
- We can not bookmark page link
- We can pass unlimited data by this method as query string
| Is This Answer Correct ? | 19 Yes | 8 No |
Get-> we can transfer limited data and its not secure.
post-> we can transfer unlimited data. ans its a secure.
| Is This Answer Correct ? | 7 Yes | 1 No |
What are the steps for the payment gateway processing?
I am writing an application in php that outputs a printable version of driving directions. It contains some long sentences, and I am a neat freak, and would like to make sure that no line exceeds 50 characters. How do I accomplish that with php?
Why do we use php?
Does cors prevent csrf?
What are the different ways to login to a remote server? Explain the me, advantages and disadvantages?
Is numeric in php?
If the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?
When are you supposed to use endif to end the conditional statement?
Whether it is possible to share a single instance of a memcache between multiple php projects?
Where php basically used?
What type of comments are supported by PHP.
Is php 7.0 stable?