.asp 页面调用远程 .php 页面

发布于 2024-09-11 09:04:40 字数 204 浏览 1 评论 0原文

我需要将数据从 IIS Web 服务器 A 发送到 Apache Web 服务器 B。两台服务器运行在不同的物理机器上,并且具有不同的静态 IP 地址。 服务器A上运行着一个processForm.asp,它处理一些数据,我想将数据发送到Web服务器B,比如说让processData.php(在服务器B上)进一步处理数据。 这可能吗?如果是,请帮忙。

非常感谢您提前提供帮助。

I need to send data from an IIS web server A to an Apache web server B. Two servers runs on different physical boxes and have different static IP addresses.
There is a processForm.asp running on server A, it processes some data, I wants to send the data to web server B, say let processData.php (on server B) to furthure process the data.
Is this possible? if yes, please help.

Thanks a lot for helping in advance.

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

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

发布评论

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

评论(3

假情假意假温柔 2024-09-18 09:04:40

一般来说,这是完全有可能的。您实际需要做什么取决于您的 processData.php 的外观以及它的期望。 WebClient< /a> 是你的朋友。

Generally speaking, this is perfectly possible. What you actually have to do depends on what your processData.php looks like and what it expects. WebClient is your friend here.

自我难过 2024-09-18 09:04:40

使用 Microsoft.XMLHTTP 或 < a href="http://msdn.microsoft.com/en-us/library/ms766431%28VS.85%29.aspx" rel="nofollow noreferrer">msxml.serverXMLHTTP 对象..

示例

Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")

objXMLHTTP.Open "GET",aURL , False
objXMLHTTP.Send

Response.Write( objXMLHTTP.responseText )

Use the Microsoft.XMLHTTP or the msxml.serverXMLHTTP object..

example

Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")

objXMLHTTP.Open "GET",aURL , False
objXMLHTTP.Send

Response.Write( objXMLHTTP.responseText )
北风几吹夏 2024-09-18 09:04:40

将数据从 IIS 上的 .asp 页面发送到 Apache 上的 processData.php。我在.asp上做了一个表单,并使用了一个隐藏的输入控件,输入控件的值就是要发送的数据。
这不是我所希望的。我希望有一个像加比建议的自动解决方案。但 Gaby 的建议返回错误,状态代码为 0。
如果有人知道解决方法,请告诉我。

To send data from an .asp page on IIS to processData.php on Apache. I made a form on .asp, and used a hidden input control, the value of the input control is the data to be sent.
This is not what I was hoping for. I was hoping for an automatic solution like Gaby was suggestion. But Gaby's suggestion returns Error with status code 0.
If someone knows a workaround please let me know.

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