HTTP Requests

GET vs POST Requests

  • The Requests themselves are similar

There is one major difference:

  • GET gets data from the server

    • Example: Hey server... get me some data

  • While POST sends data to the server

    • Example: Hey server... here is some data, do what you need with it

    • You would use POST to create things on remote server via API (or other)

Example: You want to create a Facebook status update

  • You would send the TITLE

  • CONTENT

  • etc....

This is done via a POST Request

Last updated