什么是cURL请求中-vvv选项的含义 [英] What is meaning of -vvv option in cURL request
本文介绍了什么是cURL请求中-vvv选项的含义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
根据cURL文档 http://curl.haxx.se/docs/manpage.html p>
According to cURL documentation http://curl.haxx.se/docs/manpage.html
-v,--verbose
-v, --verbose
使获取更详细/
但我遇到了
curl -vvv -u name@foo.com:password http://www.example.com
-v
和 -vvv
之间有什么区别?
推荐答案
tl; dr : -v
和 -vvv
。
多次指定-v通常意味着相应地增加详细程度。
Specifying -v multiple times usually means to increase verbosity accordingly.
这是真的,例如对于像 memcached 这样的软件:
This is true, e.g for a software like memcached:
-v verbose (print errors/warnings while in event loop)
-vv very verbose (also print client commands/reponses)
-vvv extremely verbose (also print internal state transitions)
选项解析器累积详细程度)。
但是使用curl命令行工具不是这样的。从 tool_getparam.c 中可以看出,通过 -v
只需将所需的跟踪类型切换到 TRACE_PLAIN
。传递 -vv
或 -vvv
也一样。
But with curl command-line tool this is not the case. As you can see from tool_getparam.c, passing -v
simply toggles the so-called trace type to TRACE_PLAIN
. Passing -vv
or -vvv
does the same.
这篇关于什么是cURL请求中-vvv选项的含义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文