curl命令还能这样用?

网友投稿 258 2022-10-14


curl命令还能这样用?

直接上图↓

图1

上面的命令,可以查看/dev/null?不加的话,会把响应也显示出来,看起来不够美观了~

那图1为啥还要加-s命令呢?如果不加的话,会显示下面的进度条信息↓

这个命令对于计算机网络学的好的同学来说,简直就是神器了,numerical response code that was found in the last retrieved HTTP(S) or FTP(s) transfer. In 7.18.2 the alias response_code was added to show the same info.

numerical code that was found in the last response (from a proxy) to a curl CONNECT request. (Added in 7.12.4)

version that was effectively used. (Added in 7.50.0)

num_connects Number of new connects made in the recent transfer. (Added in 7.12.3)

num_redirects Number of redirects that were followed in the request. (Added in 7.12.3)

得到http请求各个环节的耗时情况,就可以定位瓶颈所在,展开进一步的排查和优化了~

预告一下,下篇文章将会给大家介绍下时序数据库openTSDB,敬请期待~


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:学习网络协议的最佳路径和方法!
下一篇:判断网络连接是否为有线,数据状态
相关文章

 发表评论

暂时没有评论,来抢沙发吧~