Java: how to listen for http POST request sent by php? [duplicate]
Possible Duplicate:
How to facilitate communication between php script o开发者_如何学运维n a server to a running Java application on another server?
I have a php script that will send POST request containing string data to a Java application I wrote running on another server.
How do I make my Java application accept POST and read the string data ? I want Java application to listen for incoming string data sent via POST and, as soon as the string data is received, it will process the string data.
What library is used ?
OR Is it better to use sockets ? how would I accomplish the above ?
See other question: short answer is "Tomcat"
精彩评论