gpt4 book ai didi

curl - cURL 请求中 -vvv 选项的含义是什么

转载 作者:行者123 更新时间:2023-12-02 00:04:25 25 4
gpt4 key购买 nike

根据 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 的作用相同。

关于curl - cURL 请求中 -vvv 选项的含义是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24402473/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com