cURL tips
✓ Published0🌍 Public
Aabernier
Last edited Nov 22, 2013
Created on Jul 16, 2013
This example demonstrates a practical cURL command for creating a user account via a REST API. It shows a POST request to the `/signup` endpoint, explicitly setting both `Accept` and `Content-Type` headers to `application/json`. The request body is piped from standard input using the `-d @-` flag, with the JSON payload containing an email and birthday. The example relies on the cURL command-line tool and the HTTP protocol, with no JavaScript libraries or rendering involved. It highlights the correct syntax for sending JSON data from a terminal without needing a separate file.
AI-generated description