what is the difference between GET and POST?

Answers were Sorted based on User's Feedback



what is the difference between GET and POST?..

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

what is the difference between GET and POST?..

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

what is the difference between GET and POST?..

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

what is the difference between GET and POST?..

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

what is the difference between GET and POST?..

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

what is the difference between GET and POST?..

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

what is the difference between GET and POST?..

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

what is the difference between GET and POST?..

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

what is the difference between GET and POST?..

Answer / raj

The diffrence is :

when try to open new window then pass the value in query
string (it means using get method else pass it using post
method..).
most of things have been coverd by all folks....

Is This Answer Correct ?    14 Yes 7 No

what is the difference between GET and POST?..

Answer / rahul kumar

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

Post New Answer

More PHP Interview Questions

How to move uploaded files to permanent directory?

0 Answers  


What does $_files means?

0 Answers  


Which function will suitably replace 'x' if the size of a file needs to be checked? $Size=x(filename);

0 Answers  


What is pdo classes?

0 Answers  


Tell me what is the main difference between php 4 and php 5?

0 Answers  






What is composer install?

0 Answers  


How to define a function with any number of arguments?

0 Answers  


what is the importence of session.save_path in Php.ini file and wht changes u've to made before using sesssions in ur php program first time?

4 Answers  


Why super () is used in java?

0 Answers  


What is the use of @ in php?

0 Answers  


what is "mysql_pconnect", i know mysql_connect but what it is pconnect is their?

2 Answers  


How many ways I can redirect a PHP page?

9 Answers   MicroSec, N-Tier Business Solutions, University Exams,


Categories