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的原因有很多,比如空间的编码,%20对于前者和+后者,可以curl执行兼容的x-www-form-urlencoded编码吗?