curl and jq 8 · Making requests

URL-encode a value

Send a value that needs encoding, as a query string for a GET request.

curl -G https://example.com/search --data-urlencode "q=hello world"

Official curl and jq 8 documentation

More making requests commands

All making requests commands · curl and jq 8 cheatsheet

Was this page helpful?