linux常用指令

curl 相关:

 curl -X POST -d '<run><log encoding="hexBinary">4142430A</log><result>0</result><duration>2000</duration></run>' \
http://user:pass@myhost/hudson/job/_jobName_/postBuildResult
 curl -X POST -d @myfilename http://user:pass@myhost/hudson/job/_jobName_/postBuildResult
curl -X POST --header "Content-Type:application/json" --header "X-Auth:AuthKey" --data @hello.json Your_url
curl -H "Content-Type: application/xml" -X POST -d '<?xml version="1.0" encoding="UTF-8"?><Objects></Objects>' http://url

 

 

 

 

参考文档:

https://cloud.tencent.com/developer/ask/37436

posted @ 2020-07-22 14:18  苦心明  阅读(65)  评论(0)    收藏  举报