curl命令中的-vu是什么

what is -vu in curl command

curl -X POST -vu clientapp:123456 http://localhost:8080/oauth/token -H "Accept: application/json" -d "password=spring&username=roy&grant_type=password&scope=read%20write&client_secret=123456&client_id=clientapp"

我们想在 PostMan 中执行上面的 cURL 命令。但是我们不知道把 clientapp:123456.

放在哪里

提前致谢

短选项通常可以组合,所以 -vu-v -u 相同。

man curl 说:

-v, --verbose
              Be  more  verbose/talkative during the operation. Useful for debugging and seeing what's going on "under the hood". A line starting with '>'
              means "header data" sent by curl, '<' means "header data" received by curl that is hidden in normal cases, and  a  line  starting  with  '*'
              means additional info provided by curl.
-u, --user <user:password>
              Specify the user name and password to use for server authentication. Overrides -n, --netrc and --netrc-optional.

虽然有点晚了,但我还是想回答一下下面的问题: 您需要通过基本身份验证将 -vu 值设置为 usernamepassword