curl 發送HTTP請求 常用用法

curl -k  // insecure, no SSL

       -v  // verbose

       --basic -u username:password   // basic auth

       --header "Content-Type: text/xml"  // set HTTP header

       --header "Expect:"

       --user-agent "xxx"

       --data "yyy..."   // set HTTP body

       http://ip:port/url  // request URL


       

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章