问题描述
我正在尝试在 PL/SQL 中调用 REST WebService,但它不起作用.我收到此错误:
<块引用>Content-type 必须是 multipart/form-data
这是我所拥有的:
这是一个带有 CURL 的例子:
这个例子在 curl 上工作得很好,但我不知道为什么它在 PL/SQL 中没有.你能帮助我吗 ?
我认为您不能像在 URL 中那样使用 POST 和 GET 查询...
做你期望的事情看起来很困难.以下是来自 Ask Tom 的一些输入:
这个想法是生成帖子文本,包括一个特定的边界",看起来像这样:
<块引用>还有 相同问题在这里开发有很多代码.
希望有帮助.
I'm trying to call REST WebService in PL/SQL but it doesn't work. I get this error:
Content-type must be multipart/form-data
Here is what I have:
Here is an example with CURL :
This example works fine with curl but i don't know why it doesn't in PL/SQL. Can you help me ?
I don't think you can use a POST with GET query like you do in the URL...
It looks quite difficult to do what you expect. Here is some input from Ask Tom:
The idea is to generate the post text, including a specific "boundary", which will look like this:
There is also same issue developed here with lots of code.
Hope it helps.
这篇关于如何在 PL/SQL 中发送带有表单数据和参数的 POST 请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!