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 |
How can we access the data sent through the url with the get method?
Write a program to display table of a number using php?
Apart from mail() function to send emails,is there any other functions in PHP to send emails?
How to join multiple strings into a single string?
How can we register the variables into a Session?
7 Answers HCL, Star Computers, Trikon Networks,
How do I add to the beginning of an array and find the number of elements in it?
1 Answers Rushmore Consultancy,
What are the different data types in javascript?
What difference between require() and require_once()?
How can we submit form without a submit button?
What and How possible injection in PHP and mysql?
when we submit any string in single inverted comma('abc') with get or post method,we will get exact string with single inverted comma('abc')by using $_REQUEST[]. But it is giving (\'abc\'). so anybody please help me to remove that slash,therefore i will get exact string...
How to get seconds from current date using date function ?
8 Answers Sarna Technologies, Satyam,