Solved

HTTP POST vs. HTTP GET

Posted on 2014-10-27
3
221 Views
Last Modified: 2014-10-30
What is the difference between a HTTP POST and a HTTP GET

Thanks
0
Comment
Question by:Anthony Lucia
3 Comments
 
LVL 58

Assisted Solution

by:Gary
Gary earned 250 total points
ID: 40407044
GET sends all the form data in the URL
POST sends all the form data in the request
0
 
LVL 29

Accepted Solution

by:
becraig earned 250 total points
ID: 40407052
A get sends a request for a specific resource e.g:

http://www.google.com 
This is a get request and will pull up the configured index page.
An HTTP response is returned usually a 200 (sometimes a 302 in the case of a redirect 404 if missing etc)

A post pushes data to the webserver
E.g. filling out a signup form at a website etc.

Though you can push data using both methods, GET generally will allow cached responses while post cannot be cached and will be returned from the server in each instance.

more info:
http://www.programmerinterview.com/index.php/general-miscellaneous/html-get-vs-post/
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question