linux指令–curl

linux指令–curl

指定http请求方法

跳过证书验证

http的basic认证

设置http头里的字段,常用:“content-type:application/json”

设置代理

发送请求数据,使用@则从文件中读取,另外还有指定格式的数据如:

–data HTTP POST data
–data-ascii “xxxxxxxxxxxxxxxxxxxxx”
–data “xxxxxxxxxxxxxxxxxxxxx”
–data-binary “xxxxxxxxxxxxxxxxxxxxx”
–data-raw “xxxxxxxxxxxxxxxxxxxxx”

使用xxxxxxxxxxxxxxxxxxxxxx作为浏览器的agent

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注