我有一个curl命令:
curl -u ${USER_ID}:${PASSWORD} -X GET 'http://blah.gso.woo.com:8080/rest/job-execution/job-details/${job_id}'
变量job_id
中有一个值,比如,1160当我执行curl命令壳它给了我下面的错误:
{"message":"Sorry. An unexpected error occured.", "stacktrace":"Bad Request. The request could not be understood by the server due to malformed syntax."}
如果我直接传递的命令数“1160”,如下所示,卷曲命令作品。
curl -u ${USER_ID}:${PASSWORD} -X GET 'http://blah.gso.woo.com:8080/rest/job-execution/job-details/1160'
是否有人可以帮助我吗? 我想能够通过在curl命令变量的值。