공부
[cURL] urlencode
승가비
2022. 11. 24. 00:46
728x90
HTTP POST default
curl \
--data-urlencode "paramName=value" \
--data-urlencode "secondParam=value" \
http://example.com
curl --get \
--data-urlencode "p1=value 1" \
--data-urlencode "p2=value 2" \
http://example.com
# http://example.com?p1=value%201&p2=value%202
https://stackoverflow.com/questions/296536/how-to-urlencode-data-for-curl-command
How to urlencode data for curl command?
I am trying to write a bash script for testing that takes a parameter and sends it through curl to web site. I need to url encode the value to make sure that special characters are processed prope...
stackoverflow.com
https://curl.se/docs/manpage.html#--data-urlencode
curl - How To Use
curl.se
728x90