Encode form or query values safely.
Section: Forms and Upload
URL-encode request data
bash
bash
curl --data-urlencode 'message=hello world & more' https://example.com/submitExplanation
This escapes reserved characters for you.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Forms and Upload
Submit a multipart form field
Send a simple form field using multipart/form-data.
Upload a file with explicit content type
Specify the filename part and content type.
Send binary request data
Send binary-safe request data without transformations.