gpt4 book ai didi

Azure逻辑应用程序: how to make a x-www-form-encoded?

转载 作者:行者123 更新时间:2023-12-04 01:43:13 25 4
gpt4 key购买 nike

我正在尝试使用 Content-Type x-www-form-urlencoded 发出请求,该请求在 postman 中完美运行,但在 Azure 逻辑应用程序中不起作用 我收到错误请求响应,因为缺少参数,就像我不会发送任何东西一样。

我正在使用 Http 操作。

body值是param1=value1&param2=value2,但我尝试了其他格式。

最佳答案

Try out the below solution . Its working for me .

concat(
'grant_type=',encodeUriComponent('authorization_code'),
'&client_id=',encodeUriComponent('xxx'),
'&client_secret=',encodeUriComponent('xxx'),
'&redirect_uri=',encodeUriComponent('xxx'),
'&scope=',encodeUriComponent('xxx'),
'&code=',encodeUriComponent(triggerOutputs()['relativePathParameters']['code'])).

Here code is dynamic parameter coming from the previous flow's query parameter.

NOTE : **Do not forget to specify in header as Content-Type ->>>> application/x-www-form-urlencoded**

关于Azure逻辑应用程序: how to make a x-www-form-encoded?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45554887/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com