Sending Data: The Basics

Learn how to retrieve some data from web servers or APIs.

Sending data to a server is usually done via an HTTP POST method. In that case, the request body contains the data to be sent.

The data format depends on what the server expects. It can either be:

  • Key/value pairs like when a form is directly submitted.
  • JSON for more structured data.

Get hands-on with 1200+ tech skills courses.