根据cURL文档http://curl.haxx.se/docs/manpage.html
-v, - verbose
使提取更加冗长/健谈.
但我遇到了
curl -vvv -u name@foo.com:password http://www.example.com
Run Code Online (Sandbox Code Playgroud)
-v和之间有什么区别-vvv?
del*_*eil 19
tl; dr:-v和之间没有区别-vvv.
多次指定-v通常意味着相应地增加冗长度.
这是真的,例如对于像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)
Run Code Online (Sandbox Code Playgroud)
(在后台,选项解析器累积了详细程度).
但是使用curl命令行工具并非如此.正如您在tool_getparam.c中看到的那样,传递-v只需将所谓的跟踪类型切换为TRACE_PLAIN.通过-vv或-vvv做同样的事.