如何从 ruby​​ 调用 cgi 脚本

发布于 2024-08-30 07:27:38 字数 142 浏览 0 评论 0 原文

我有一个使用 SSL 托管在 Apache 上的远程 cgi 脚本。它接受两个输入变量 ab

我想使用 ruby​​ 调用具有正确输入变量的 cgi 脚本。

任何线索将不胜感激。

I've a remote cgi script hosted on Apache using SSL. It takes in two input variables a and b.

I want to call call the cgi script with right input variables using ruby.

Any clues would be appreciated.

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

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

发布评论

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

评论(1

羁客 2024-09-06 07:27:38

假设您想要通过 HTTP 远程调用 CGI 脚本,然后查看使用 Net::HTTP 加上 CGI.escapeab 的值进行编码。 Net::HTTP 文档中有一些使用 GET 和 POST 执行此操作的示例。

Assuming you mean that you want to make a remote call to the CGI script via HTTP then take a look at using Net::HTTP plus CGI.escape to encode the values of a and b. There are some examples of doing this using GET and POST in the Net::HTTP documentation.

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