堪称神器的命令行工具系列——curl


关于 curl

如何使用
curl https://nicelinks.site/
-e
curl?-e?'https://nicelinks.site?q=quickapp'?https://quickapp.lovejade.cn/--limit-rate
curl --limit-rate 200k https://nicelinks.site
-F
curl -F 'file=@example.png' https://example.com/files
curl?-F?'file=@example.png;type=image/png'?https://example.com/filescurl?-F?'file=@example.png;filename=me.png'?https://example.com/files
curl 妙用
查看网页源码
curl https://nicelinks.site/
curl https://nicelinks.site/\?_escaped_fragment_
if ($http_user_agent ~* "baiduspider|twitterbot|facebookexternalhit|rogerbot|embedly|quora link preview|showyoubot|outbrain|pinterest|slackbot|vkShare|W3C_Validator") {set $prerender 1;}if ($args ~ "_escaped_fragment_") {set $prerender 1;}if ($prerender = 1) {set $prerender "127.0.0.1:3000";rewrite .* /$scheme://$host$request_uri? break;proxy_pass http://$prerender;}
curl?-o?your-file-name.html?https://nicelinks.site/\?_escaped_fragment_自动跳转
curl -L https://hacpai.com/
显示通信过程
curl -v https://github.com
curl --trace output.txt https://github.com# orcurl --trace-ascii output.txt https://github.com
curl?--trace-ascii?output.txt?--trace-time?https://github.com发送表单信息
curl example.com/api/v1/profile?name=prfect-man
curl -X POST --data "file=xyz" example.com/api/v1/upload
curl?-X?POST--data-urlencode?"date=April?2"?example.com/api/v1/timedate文件上传
# 托管本地文件curl -F'file=@yourfile.png' https://0x0.st# 托管线上文件curl -F'url=http://example.cn/img.jpg' https://0x0.st
调用服务
缩短您指定的 url
curl -F'shorten=https://nicelinks.site' https://0x0.st
获取所在地 ip
curl -L tool.lu/ip# orcurl -L ip.tool.lu
获取天气预报
curl wttr.in

下载文件并显示下载进度
curl?-#?-o?pretty-gril.jpg?https://w.wallhaven.cc/full/9m/wallhaven-9mxjp8.jpg


?虎牙被抬员工当事人再发声;淘宝回应网店客服“看见”用户未发送内容;Python 3.9.2 发布 | 极客头条
?Ant Design 被删代码已恢复,现登顶 GitHub Trending Top 2
?「1s」即可!用 VS Code 一键玩转 GitHub 代码!
关注公众号:拾黑(shiheibook)了解更多
[广告]赞助链接:
四季很好,只要有你,文娱排行榜:https://www.yaopaiming.com/
让资讯触达的更精准有趣:https://www.0xu.cn/
关注网络尖刀微信公众号随时掌握互联网精彩
赞助链接
排名
热点
搜索指数
- 1 立德少年时 树人天地间 7904111
- 2 人民币再次升值 7808199
- 3 女子罕见被控迷信罪 “供奉”2.1亿 7712353
- 4 中国继续成为全球增长的重要引擎 7616037
- 5 飞机凌晨在兰州上空盘旋 轰鸣数小时 7522766
- 6 卖国弃民!高市早苗国会现场遭痛斥 7425953
- 7 吴秀波被执行6200万 7329597
- 8 商场被指吓人悬空大衣已撤下 7233540
- 9 被指“做假账几十亿” 周鸿祎回应 7135521
- 10 海南自贸港18日正式启动全岛封关 7043257









CSDN
