.asp page calls a remote .php page
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, s开发者_开发知识库ay 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.
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.
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 )
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.
精彩评论