Hello there This is your first time to login from this IP. Have fun with Enterprise Q&A
0 投票
分类:Other related | 用户: (2.2k 分)

Linux学习篇之---curl的多参数问题

        在Linux环境下,利用curl测试刚开发的接口,发现多个参数时,第二个参数获取不到,例如:

curl http://192.168.20.21:8080/bitcall/test.htm?hash=562891707c4d2c3045a879ce25831def88669d66cb9341c&height=401665

        后来查阅资料发现,是因为在linux系统中& 会使进程系统后台运行,所以必须对&进行下转义

curl http://192.168.20.21:8080/bitcall/test.htm?hash=562891707c4d2c3045a879ce25831def88669d66cb9341c\&height=401665

你的回答

昵称(可选):
隐私:你的邮箱仅用于接收通知。
Welcome to Memo QA
欢迎来到Memo快速问答

分类

...