我在 azure 数据工厂管道中创建了一项 Web 事件,该事件只有一个 header ,并且我必须传递 POST 请求的正文。我尝试过将正文作为 JSON 和字符串传递,但请求因“无效查询”而失败。谁能告诉我如何从 azure 数据管道发送带有附加 header 和正文的 POST 请求。我有多个键值对要传递给正文。 Check the Screenshot of web activity
最佳答案
请尝试这个。首先,添加一个 header ,名称为 Content-Type
,值为 application/x-www-form-urlencoded
然后将正文更改为:
grant_type=password&username={username}&password={password}&scope=customer-api
关于azure - Azure 数据工厂中 Web 事件中 POST 请求的正文格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54256158/