【发布时间】:2021-12-21 09:05:36
【问题描述】:
我一直在尝试找出一种在 Azure API 管理正文中发布 Content-Type application/x-www-form-urlencoded 的方法。
我已经设法让它在 Postman 中工作,因为它支持 x-www-form-urlencoded,但似乎无法在 API 管理中找到实现它的方法。无论我在哪里以及如何尝试在 API 管理中发布正文,它都会出现错误:解析请求时出错。预期格式:{ token: string,enrollDevice: bool }。在邮递员中,我可以使用格式为 {"token":"xxx","enrollDevice":xxx} 的 x-www-form-urlencoded 将值放入 POST 正文中,它可以工作!
如何使用 Azure API 管理在正文中发布所需的值?
如果您需要与问题相关的更多信息,我很乐意提供更多信息。我在这里先向您的帮助表示感谢! :)
【问题讨论】:
标签: post jwt postman azure-api-management x-www-form-urlencoded