curl 例子

bearer token例子:

https://reqbin.com/req/c-hlt4gkzd/curl-bearer-token-authorization-header-example

digest认证例子:

curl -X POST \
    -d '{"jsonrpc":"2.0","method":"core.version","id":"1"}' \
    -s --digest -u rpcuser:rpcpass  \
    http://localhost:8081

你可能感兴趣的:(curl,例子)