简体   繁体   English

POST数据从PHP到ASP.NET

[英]POST data from PHP to ASP.NET

I have a instance of Apache and IIS running on my server which i need to post data from the PHP application to the ASP.NET application .. is this action possible ? 我在我的服务器上运行了一个ApacheIIS实例,我需要将数据从PHP应用程序发布到ASP.NET应用程序。这个动作可能吗? ,

  • if its possible what considerations are required ? 如果可能需要考虑什么?

  • if its not possible what are the alternatives ? 如果它不可能有什么替代方案? (Except - Webservices and socket programming ) (除了 - Webservicessocket programming

because using web services or socket programming will not provide the overall requirement which i have on head ! 因为使用web servicessocket programming不会提供我头上的整体要求!

I would look at this answer on super user 我会在超级用户上看这个答案

https://superuser.com/questions/149329/how-do-i-make-a-post-request-with-curl https://superuser.com/questions/149329/how-do-i-make-a-post-request-with-curl

Shows you how to do a post using cURL from PHP. 向您展示如何使用PHP中的cURL进行发布。 You can just direct your post to your ASPX page. 您可以将帖子定向到ASPX页面。

I did something like this using Memcache, but I'm not shure thats what you want/need: 我使用Memcache做了类似的事情,但我不是那些你想要/需要的东西:

I put some data into the cache in PHP and read the same value out in .net, but its a little complicated when it comes to objects, but for basic value types it worked fine... 我在PHP中将一些数据放入缓存中并在.net中读取相同的值,但是当涉及到对象时它有点复杂,但对于基本值类型它工作正常...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM