无法发送curl请求。此请求已被拒绝授权

时间:2016-08-01 12:27:52

标签: http curl https request postman

我成功向邮递员发送了基本授权和1个自定义标头令牌请求。 现在我需要使用curl发送相同的请求。 这就是邮递员参数的样子:

enter image description here

这是我的卷曲命令:

curl -k -u my@mail.com:1Qwer432 -H "CERequestToken: 46Yx2fo4t5+p1IX" https://mysite/v54/api/contracts

我做错了什么?

1 个答案:

答案 0 :(得分:0)

我找到了解决方案。问题是卷曲不能保存cookie。并且有必要发送带有请求的cookie。