使用 PL/SQL 阅读网站

发布于 2025-01-03 20:36:44 字数 132 浏览 2 评论 0原文

我想使用PL/SQL调用一个网站并获取它的返回值。

该过程的主要意义是调用本身,我并不真正需要网站给定的返回值。

如何在 PL/SQL 中尽可能简单地执行网络调用?

感谢您的帮助!

弗洛

I want to call a website using PL/SQL and get the return value of it.

The main sense of the process is the call itself, I don't really need the given return value of the website.

How is it possible to execute a webcall as simple as possible in PL/SQL?

Thanks for help!

Flo

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

辞取 2025-01-10 20:36:44

非常简单:

response = utl_http.request(url);

其中 responseVARCHAR2(2000),因为此调用仅返回响应的前 2000 个字节。

当然,您也可以以 2000 字节块的形式检索整个响应文档。您还可以设置超时、响应错误检查等。

在 Oracle 10g+ 中可用。请参阅文档

It is very simple:

response = utl_http.request(url);

where response is VARCHAR2(2000) as this call returns only the first 2000 bytes of the response.

Of course, you can retrieve the whole response document too, in 2000 bytes chunks. You can additionally set timeout, response error check, etc.

Available in Oracle 10g+. See documentation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文