Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

HTTP POST vs. HTTP GET

Posted on 2014-10-27
3
Medium Priority
?
255 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 1000 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 1000 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

New Relic recently released its Synthetics product that allows for the creation of performance monitors that periodically test a site's performance. If you wish to test an interactive workflow New Relic employs Selenium WebDriverJS to run those test…
Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
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…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

885 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