I have a POST method in the server side, which get a JSON (as raw text) and some headers. The response is data (a file content), which send by the server to the client.
I search for a way to write the client in Java. The client sends a POST message with raw text, and some headers, and know to get the response.
All the example I saw use the HttpsURLConnection
, but I didn't see any way to send the raw text (JSON), and get the data content.