7

curl post 里面的 + 加号怎么不转义输出啊

 2 years ago
source link: https://www.v2ex.com/t/814924
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Linux

curl post 里面的 + 加号怎么不转义输出啊

  toyst · 刚刚 · 1 次点击
oldPath="ABC+ABC"
curl -G --data--urlencode "oldPath=$oldPath" www.abc.com

传过去报错 oldPath "ABC ABC" 不存在

"+" 变成了空格

怎么传 ABC+ABC 过去呢?

目前尚无回复

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK