curl -X POST -H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "key1=value1" \
--data-urlencode "key2=value2" \
https://example.com/api
curl posta form-data 的代码示范
4 min read
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "key1=value1" \
--data-urlencode "key2=value2" \
https://example.com/api