Wait for a POST request and get the posted contents from a server in Java

63 views Asked by At

I have a server which I want two computers to communicate through - one sends a POST request, the other gets the posted contents, posts a result and the first one gets the posted contents. I know how to make a GET and POST request but how can I wait for a POST request to happen and get the posted contents?

1

There are 1 answers

9
rzwitserloot On

You'd need to start up a webserver to do so.

A simple way to get started is with something like Spark Framework.