根据cURL文档
http://curl.haxx.se/docs/manpage.html
-v,–verbose
Makes the fetching more verbose/talkative.
但我遇到了
curl -vvv -u name@foo.com:password http://www.example.com
-v和-vvv有什么区别?
解决方法
tl; dr:-v和-vvv之间没有区别.
Specifying -v multiple times usually means to increase verbosity accordingly.
这是真的,例如像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)
(幕后选项解析器accumulates the level of verbosity).
但是使用curl命令行工具并非如此.从tool_getparam.c可以看出,传递-v只是将所谓的跟踪类型切换为TRACE_PLAIN.传递-vv或-vvv也是如此.