如何在 Azure 逻辑应用 HTTP 中的表单数据中以二进制格式传递多个文件
我试图在 Azure 逻辑应用程序中以二进制格式传递两个多部分形式的文件。但上传请求被拒绝。当我在邮递员中传递相同的请求时,请求成功。 PFB 详细信息。
邮递员请求:
Postman Curl 请求:
curl --location --request POST 'https://abc/kofax/claims' \
--header 'x-abchk-msgid: 0214945a-509a-48af-9df2-281352806421' \
--header 'Content-Type: multipart/mixed' \
--header 'Authorization: Bearer XXXXXXXXX' \
--form 'claimScanPDF=@"/C:/Users/ashutosh.bajpai/00000438.PDF"' \
--form 'claimScanJSON=@"/C:/Users/ashutosh.bajpai/kofax-op.json"'
--testboundary
{
"$content-type": "multipart/mixed",
"$multipart": [
{
"body": @{concat(body('GETFILEPDF').$content)},
"headers": {
"Content-Disposition": "form-data; name:claimScanPDF; filename=@{triggerBody()?['FileNamePDF']}"
}
},
{
"body": @{concat(body('GETFILEJSON').$content)},
"headers": {
"Content-Disposition": "form-data; name:claimScanJSON; filename=@{triggerBody()?['FileNameJSON']}"
}
}
]
}
--testboundary--
我只收到一般错误消息作为响应 - 请求的 URL 被拒绝。请咨询您的管理员。 请帮助理解邮递员和逻辑应用程序请求之间的区别。
i am trying to pass two files in multipart form in the Azure Logic App in binary format. But the upload request gets reject. When i pass the same request in postman, the request is successful. PFB the details.
Postman Request:
Postman Curl Request:
curl --location --request POST 'https://abc/kofax/claims' \
--header 'x-abchk-msgid: 0214945a-509a-48af-9df2-281352806421' \
--header 'Content-Type: multipart/mixed' \
--header 'Authorization: Bearer XXXXXXXXX' \
--form 'claimScanPDF=@"/C:/Users/ashutosh.bajpai/00000438.PDF"' \
--form 'claimScanJSON=@"/C:/Users/ashutosh.bajpai/kofax-op.json"'
--testboundary
{
"$content-type": "multipart/mixed",
"$multipart": [
{
"body": @{concat(body('GETFILEPDF').$content)},
"headers": {
"Content-Disposition": "form-data; name:claimScanPDF; filename=@{triggerBody()?['FileNamePDF']}"
}
},
{
"body": @{concat(body('GETFILEJSON').$content)},
"headers": {
"Content-Disposition": "form-data; name:claimScanJSON; filename=@{triggerBody()?['FileNameJSON']}"
}
}
]
}
--testboundary--
i only get generic error message in response - The requested URL was rejected. Please consult with your administrator.
Please help to understand what is the difference between postman and logic app request.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论