【发布时间】:2016-11-14 05:58:24
【问题描述】:
我正在尝试使用 post 参数发出 curl 请求。下面是 curl 请求:
curl -d "name=abcdef&ghi&age=20" <http://f1.com>
name 参数值包含& 字符,它充当分隔符。有什么办法可以在参数值中包含 & ??
【问题讨论】:
-
尝试在 & 符号周围加上单引号。喜欢
curl -d "name=abcdef'&'ghi'&'age=20" <http://f1.com>