curl

🗞Shell
bash

Examples

  • Send message with authentication header:

    curl -H "Authorization: Basic MmNiMWFjNGP4YTFkNGIwMQk0N2JiY2M4ODUxODYwNjc6NWVjNWNjNZQzYjhlNGI0YmEzMmIwZDEyZjIxYT8EYWQ=" -d grant_type=client_credentials https://accounts.spotify.com/api/token
  • Send a Post request:

    curl 'http://localhost:3030/messages/' -H 'Content-Type: application/json' --data-binary '{ "text": "Hello Feathers!" }'

Discuss on TwitterImprove this article: Edit on GitHub

Discussion


Explain Programming

André Kovac builds products, creates software, teaches coding, communicates science and speaks at events.