-XGET 或者 -XPUT 或者 -XPOST 或者 -XDELETE
指定http请求方法
-k, –insecure
跳过证书验证
-u “username:password” 或者 , –user ”username:password”
http的basic认证
-H “xxxxxx”
设置http头里的字段,常用:“content-type:application/json”
-x, –proxy [protocol://]host[:port] Use this proxy
设置代理
d, –data ‘xxxxxxxxxxxxxxxxxxxxx’ 或者 -d @file
发送请求数据,使用@则从文件中读取,另外还有指定格式的数据如:
–data HTTP POST data
–data-ascii “xxxxxxxxxxxxxxxxxxxxx”
–data “xxxxxxxxxxxxxxxxxxxxx”
–data-binary “xxxxxxxxxxxxxxxxxxxxx”
–data-raw “xxxxxxxxxxxxxxxxxxxxx”
–A, –user-agent ‘xxxxxxxxxxxxxxxxxxxxxxx’
使用xxxxxxxxxxxxxxxxxxxxxx作为浏览器的agent
发表回复