得到接口的curl命令方法:
1,登录状态下在浏览器打开要测试的接口:
http://cq01-testing-fbqa02.cq01.baidu.com:8756/app/balance/openAccount?from=4.0.0&itemId=94200001
2,F12进入开发者模式,点击NetWork.
3,在箭头处点击右键,copy->copy as cURL(cmd)
4,复制的内容即为shell中要curl的内容:
curl "http://cq01-testing-fbqa02.cq01.baidu.com:8756/app/balance/openAccount?from=4.0.0^&itemId=94200001" -H "Accept-Encoding: gzip, deflate" -H "Accept-Language: zh-CN,zh;q=0.8" -H