documentation
documentation copied to clipboard
Use --data-urlencode instead of -F for curl examples
The curl examples for the HTTP API are technically incorrect, and only work for simple cases where the -F name=value value is already correctly encoded.
Using --data-urlencode instead of -F would be more correct, as that would correctly encode the value, so that value can be anything.
e.g. this will just work:
--data-urlencode "html=<fancy multi-line HTML document>"
e.g. this probably won't work if your value is more complex:
-F "html=<fancy multi-line HTML document>"