curl
Send HTTP requests and receive responses, supports multiple protocols and authentication methods.
$ curl -X POST -H "Content-Type: application/json" https://api.example.com/upload
Examples
# Upload JSON
curl -X POST -H "Content-Type: application/json" -d '{"title":"Hello"}' https://api.example.com/posts
# Upload file
curl -T localfile.zip https://example.com/upload
# Form upload
curl -F "name=John" -F "avatar=@photo.jpg" https://api.example.com/upload
# PUT update
curl -X PUT -d '{"status":"active"}' -H "Content-Type: application/json" https://api.example.com/users/1