What is the difference between get and post method in HTTP?

already exists.

Would you like to merge this question into it?

already exists as an alternate of this question.

Would you like to make it the primary and merge this question into it?

exists and is an alternate of .

GET Method:
  1. All the name value pairs are submitted as a query string in URL.
  2. It's not secured as it is visible in plain text format in the Location bar of the web browser.
  3. 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.
  4. Length of the string is restricted.
  5. If method is not mentioned in the Form tag, this is the default method used.
  6. If get method is used and if the page is refreshed it would not prompt before the request is submitted again.
  7. One can store the name value pairs as bookmark and directly be used while sharing with others - example search results.
  8. Data is always submitted in the form of text
  9. If the response of the page is always same for the posted query then use GET example database searches
POST Method:
  1. All the name value pairs are submitted in the Message Body of the request.
  2. Length of the string (amount of data submitted) is not restricted.
  3. Post Method is secured because Name-Value pairs cannot be seen in location bar of the web browser.
  4. If post method is used and if the page is refreshed it would prompt before the request is resubmitted.
  5. If the service associated with the processing of a form has side effects (for example, modification of a database or subscription to a service), the method should be POST.
  6. Data is submitted in the form as specified in enctype attribute of form tag and thus files can be used in FileUpload input box.

POST is better because GET puts the code in the browser so people can view the information (eg.hackers) however with POST you can't favorite the page but you can with GET

GET and POST methods are both ways of transporting variables (and their values) from one page to another. However, they transport the variable names and values in different ways. GET uses the URL to transfer variables. Web pages can pick up the URL address and detach the variables usable to the scripting language used in the page. A user can change the variable names and values of a URL with GET-type variables. This introduces security risks, as it is an open way to attack a website. All variables that could possibly be input by a user should always be checked. GET values must be under 255 characters, otherwise some older browsers will not transfer values properly. Today's browsers propagate values just fine with larger character limits, such as 4,000 - but caution should be taken. POST transfers variables from one page to the next - broadly speaking - silently. No users can edit these variables without simulating a POST transfer to the page - which is a more difficult route for site attackers to make. These variables should still always be checked. POST values can be of infinite length.
23 people found this useful

What does a dentist do?

A dentist is a specialist of tooth related problems. They can perform anything from simple cleans and fillings to complex surgical problems. There are specialist dentists such

What is a dentist?

A dentist is a professional person (similar to a doctor) who takes care of your teeth, gums and mouth. Among other things, a dentist also provides fillings when necessary and

Can dentists afford expensive cars?

What an odd question? Just about anyone can afford an expensive car if they (a) are willing to save up for it, and (b) are willing to sacrifice life's other experiences/object

What the dentists do?

They can perform all dental procedures to make your smile brighterand to keep you stay away from dental problems. Whether you arevisiting us for professional teeth whitening,

How do you afford dentist with no insuance?

You should check out this website, It is not insurance but a medical/dental discount plan. It allows you to get discounts for dental, vision, chiropractic, prescription and ph

What is the dentist?

A dentist is a place where people go every 6 months. You sit in the dentist chair, they look at your teeth, they put this yellow stuff on your teeth to put vitamins in your te

What can you do for a absess tooth you can not afford to go to a dentist?

http://www.answers.com . Browse questions . http://www.answers.com/main/what_content.jsp . Advanced search . How to contribute . Search unanswered questions.... Brows

What dentist has the most affordable dentures in nogales Mexico?

We go to Nogales Dental Laser (www.nogalesdentallaser.com) orArizona Dental Now (www.arizonadentalnow.com). Both of them havebetter technology than most U.S. clinics. We were
In Uncategorized

Can you afford?

Afford is a transitive verb. Without an object, this sentence makes little sense.
In Manchester

Where could one find affordable Manchester laser dentists?

One good place to look for laser dentists in any town or city named Manchester is by using a referral and review service such as HealthProfs or Mojopages. Another way is to si
In Dentists

Which dentists offer affordable dental plans?

Dental work can be very costly if one does not have a good dental plan. The website Dental Plans allows one to find affordable dental plans as well as dentists by entering a