0

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.

Joel Coehoorn
  • 380,066
  • 110
  • 546
  • 781
Michael Z
  • 4,336
  • 4
  • 20
  • 27

3 Answers3

1

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
  • 110,157
  • 37
  • 194
  • 282
1

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 )
Gabriele Petrioli
  • 183,160
  • 33
  • 252
  • 304
  • 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 Aug 04 '10 at 08:30
  • 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 Aug 07 '10 at 09:59
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.

Michael Z
  • 4,336
  • 4
  • 20
  • 27