what is the difference between GET and POST?
Answers were Sorted based on User's Feedback
Answer / mahesh
both Get & Post Method is used to post data to server.
But by how it is displayed is the difference b/w them
Get Method : Not Secure, Data visible in url, oly 255 byte
charector can be allowed to transfer, able to bookmark this
page when next page is displayed...Preferred in normal
browsing
Post Method : Secure , Data is not visible in url, unlimited
data transfer , not able to bookmark this page.... Preferred
in Login System, ...
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / nikhilkumar bagla
GET :-
-it is used to send information from a form with Get Methods.
-it will be displayed in the browser's address bar(its visible).
-it has limits on the amount of information to send (max. 100 characters).
-When using method="get" in HTML forms, all variable names and values are displayed in the URL.
POST:-
-Information sent from a form with the POST method is invisible to others.
-it has no limits on the amount of information to send.
-by default 8 Mb max size for the POST method, (can be changed by setting the post_max_size in the php.ini file).
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / ashish kumar &amit kumar
Get is the method to send the data in very fast but it is
not secure . This data is submited as a part of url,it can
stoe only 18 from veriable.
post is the method to send the data in slow rate at compare
to get() method. It is secured than get(). data is not
visible in the url,it can post unlimited from varible.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / yugandhar
GET:
-----
1. URL Changes to the submitted script name, appended with
a list
of each variable with the value.
2. Use only if the number of variable to be used in a form
ar very less.
3. Never use GET forms when asking for login ID and
passwords.
4. Even hidden variables are shown as a part of the URL.
5. A lot of webservers might complain about long URLs being
submitted.
A lot of times a URL 255 char or more is a problem.
POST:
-----
1. This is the best way of submitting forms to the web
server.
2. There is no limitation on the number of Variables passed
from the form.
3. This is a transparent way of transmitting variables to
the webserver
where hidden variable are always hidden!
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / ekta
Fundamental Difference is probably the Visibility - GET request is sent via the URL string (appended to the URI with a question-mark as separator), which is visible whereas POST request is encapsulated in the body of the HTTP request and can't be seen.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / raghunandan rawat
The different of get and post
GET_is
datais submited as a part of url
it can stoe only 18 from veriable
post_is
data is not visible in the url
it can post unlimited from varible
| Is This Answer Correct ? | 15 Yes | 15 No |
Answer / khaleek ahmad
get and post are HTTP methods that are used to send request
to the server.Difference of them are listed below.
Get() transfer only 256 char. While there is not limit for post.
As the data transfers through address bar (URL) there are
some restrictions in using space, some characters like
ampersand (&) etc in the GET method of posting data. We have
to take special care for encoding data if such special
characters are present. While in post there is no restriction.
For more detail please see: -
http://interview-preparation-for-you.blogspot.com/2011/01/difference-between-get-and-post.html
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / khaleek
For more detail please see: -
<a
href="http://interview-preparation-for-you.blogspot.com/2011/01/difference-between-get-and-post.html">For
more detail please see: -
http://interview-preparation-for-you.blogspot.com/2011/01/difference-between-get-and-post.html</a>
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / yogesh
GET : GET method is a not secure long time period
POST : POST method is a long time period of future is
successfully work on the our file/project
(So better is POST than GET)
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / ashfaq
GET:
------
1. URL Changes to the submitted script name, appended with a list
of each variable with the value.
2. Use only if the number of variable to be used in a form ar very less.
3. Never use GET forms when asking for login ID and passwords.
4. Even hidden variables are shown as a part of the URL.
POST:
---------
1. This is the best way of submitting forms to the web server.
2. There is no limitation on the number of Variables passed from the form.
3. Hidden variable are always hidden!
| Is This Answer Correct ? | 0 Yes | 0 No |
Tell me will a comparison of an integer 12 and a string "13" work in php?
How can you send email in php?
Write a program in php to find the occurrence of a word in a string?
Why is php used for web development?
How to connect SMTP server in php. I want to edit that in mantiss bug tracking tool. If anyone worked on mantiss software or in php, please give answer . I need to modify that in mantiss software.
What are the Merits and De-Merits of CURL library ?
Does php need a closing tag?
How many ways to include variables in double-quoted strings in php?
I have 10 elements of Array, how can i remove 5 array element, with single function.
What is a trait in php?
Why do we use cookie?
Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?