使用C#使用承载令牌向REST API发出POST请求时出错 [英] Error making a POST request with Bearer Token to REST API using C#

查看:146
本文介绍了使用C#使用承载令牌向REST API发出POST请求时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用基本身份验证POST到REST API并获取 成功回复,以及令牌。现在我需要将令牌传递给网站。通过Bearer Token我遇到了一些困难。我收到了一个Forbidden错误。
有些人可以考虑一下我遗失的地方吗?

I am able to POST to an REST API with Basic authentication and getting  successful response back, along with the Token. Now I need to pass the token to the site. I am having some difficulties as to passing the Bearer Token. I get a Forbidden error. Can some please give some thoughts where am I missing something?

谢谢。




推荐答案

<您可以在以下论坛中更好地讨论您的问题。

your issues can be better discussed at the below forum.

https://forums.asp.net/28.aspx/1?WCF+ASMX+and+other+Web+服务

https://forums.asp.net/28.aspx/1?WCF+ASMX+and+other+Web+Services


这篇关于使用C#使用承载令牌向REST API发出POST请求时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆