惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The GitHub Blog
The GitHub Blog
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
V
V2EX
Engineering at Meta
Engineering at Meta
美团技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 司徒正美
I
InfoQ
S
SegmentFault 最新的问题
博客园 - 叶小钗
N
Netflix TechBlog - Medium
Y
Y Combinator Blog
IT之家
IT之家
博客园 - Franky
大猫的无限游戏
大猫的无限游戏
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
月光博客
月光博客
The Cloudflare Blog
U
Unit 42
GbyAI
GbyAI
L
LangChain Blog
Microsoft Azure Blog
Microsoft Azure Blog

cURL

curl 稳定版终于支持 HTTP3 了 有其他什么命令行下载工具 能跳过小于指定大小的文件吗? curl 和 wget 似乎都不行 记录下 Curl 使用指南 curl 默认证书路径怎么修改 cURL 为什么会把十进制数字转为 IP? Curl 工具 23 岁生日 请教如何用 curl 下载验证码图片 libcurl 获得数据的时候,有 recv 或者 pull 这样主动拉取数据的接口,而不是使用回调函数被动接收数据的方式吗? curl 作者关于他和 HTTP 的故事 cURL 和 Wget 的异同比较 输出 curl 请求各个阶段的时间 curl: (35) error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112) 在搜索引擎搜索过了,还是不能解决? 是否有类似 cURL 这样强大的,但是可以用于调试 socket 服务的命令行工具? cURL 的作者们 各位 cURL 用户们,你们用的参考页面是?
curl 将在版本 7.70 支持以 JSON 方式输出调试信息
Livid · 2020-03-18 · via cURL

https://daniel.haxx.se/blog/2020/03/17/curl-write-out-json/

例子如下:

{
  "url_effective": "https://example.com/",
  "http_code": 200,
  "response_code": 200,
  "http_connect": 0,
  "time_total": 0.44054,
  "time_namelookup": 0.001067,
  "time_connect": 0.11162,
  "time_appconnect": 0.336415,
  "time_pretransfer": 0.336568,
  "time_starttransfer": 0.440361,
  "size_header": 347,
  "size_request": 77,
  "size_download": 1256,
  "size_upload": 0,
  "speed_download": 0.002854,
  "speed_upload": 0,
  "content_type": "text/html; charset=UTF-8",
  "num_connects": 1,
  "time_redirect": 0,
  "num_redirects": 0,
  "ssl_verify_result": 0,
  "proxy_ssl_verify_result": 0,
  "filename_effective": "saved",
  "remote_ip": "93.184.216.34",
  "remote_port": 443,
  "local_ip": "192.168.0.1",
  "local_port": 44832,
  "http_version": "2",
  "scheme": "HTTPS",
  "curl_version": "libcurl/7.69.2 GnuTLS/3.6.12 zlib/1.2.11 brotli/1.0.7 c-ares/1.15.0 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.3.0) nghttp2/1.40.0 librtmp/2.3"
}

如果所有 Unix 工具都能这样用 JSON 格式输出信息就好了。