views:

23

answers:

3

Hi: 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.

+1  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.

Anton Gogolev
+1  A: 

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 )
Gaby
Hi Gaby: Thanks very much for your reply. I am trying out your suggestion. From my question, processData.php on server B processes a php form(similar to welcome.php on http://www.w3schools.com/php/php_forms.asp). How can I post the data in processForm.asp to processData.php?
Michael Z
Hi: I believe it should work in some cases. However I got "Error: returned status code 0". There is a separate thread about this error: http://stackoverflow.com/questions/872206/http-status-code-0-what-does-this-mean-in-ms-xmlhttp
Michael Z
There is another tutorial on XMLHTTP http://www.xul.fr/en-xml-ajax.html.
Michael Z
A: 

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.

Michael Z