Debian命令行工具curl
似乎无法执行到application / x-www-form-urlencoded的兼容数据编码。
从man curl
我得到下面的编码选项列表:
选项: 目的:
-d/--data <data> send non-encoded data as x-www-form-urlencoded --data-binary <data> send raw data as x-www-form-urlencoded --data-urlencode <data> send url-encoded data as x-www-form-urlencoded -F/--form <name=content> send data as multipart/form-data
由于编码urlencode
与x-www-form-urlencoded
urlencode
不同之处在于多种原因,比如空格的编码,前者为%20
,后者为+
,可以curl
执行一个兼容的x-www-form-urlencoded
编码?