CVE漏洞中文网

0DayBank一个专门收集整理全球互联网漏洞的公开发布网站
  1. 首页
  2. 漏洞列表
  3. 正文

curlpost-2020/8/19

2020年8月19日 403点热度 0人点赞 0条评论

1.curl usage
For sending data with POST and PUT requests, these are common curl options:

request type

-X POST

-X PUT

content type header

-H "Content-Type: application/x-www-form-urlencoded"

-H "Content-Type: application/json"

data

form urlencoded: -d "param1=value1¶m2=value2" or -d @data.txt

json: -d '{"key1":"value1", "key2":"value2"}' or -d @data.json

2. example

2.1 post urlencode binary data

curl -X POST --data-binary $'some_metric{label=\"val1\"} 42\n' "

cat <0daybank

标签: 暂无
最后更新:2020年8月19日

小助手

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

您需要 登录 之后才可以评论

COPYRIGHT © 2024 www.pdr.cn CVE漏洞中文网. ALL RIGHTS RESERVED.

鲁ICP备2022031030号

联系邮箱:wpbgssyubnmsxxxkkk@proton.me