.asp 页面调用远程 .php 页面
我需要将数据从 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
一般来说,这是完全有可能的。您实际需要做什么取决于您的
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.使用 Microsoft.XMLHTTP 或 < a href="http://msdn.microsoft.com/en-us/library/ms766431%28VS.85%29.aspx" rel="nofollow noreferrer">msxml.serverXMLHTTP 对象..
示例
Use the Microsoft.XMLHTTP or the msxml.serverXMLHTTP object..
example
将数据从 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.