Communication between ASP.Net and PHP

A question from comp.lang.php:

I want to create a process on asp.net that, by interaction on a .aspx page a process is fired off that creates and sends a file via https: to a URL which is a php page.

Why bother with the file?  Just send raw data in a POST request…

The php page will insure that the file is from an approved source, capture it, and process it. (Because the source is only one particular web site, perhaps it’s safe to allow all from the source IP addr of the web site.)

Ideas on how to best accomplish this?

On the requesting (ASP.Net) side, you will need to use HttpWebRequest and HttpWebResponse classes.  On the responding (PHP) side, it’s not going to be any different from handling a form submission.

This entry was posted in Answers, Technology. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *