O'Reilly logo

jQuery and JavaScript Phrasebook by Brad Dayley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Understanding GET versus POST Requests

The two main types of requests that you send to the web server are GET and POST. A GET request passes parameters as part of the URL, whereas a POST request passes them as part of the request data.

GET Request URL:

http://localhost/code/example1.html?first=Brad&last=Dayley

GET Request Data:

<empty>

POST Request URL:

http://localhost/code/example1.html

POST Request Data:

first=Brad last=Dayley

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required