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
curl and jq 8 · Making requests
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
Was this page helpful?