HTTP Client 4 and a JSON endpoint
August 17, 2017
I need to POST to a HTTPS JSON based service endpoint in Java. I can do this using Http Client 4.
In the following code, SERVICE_ENDPOINT is the full URL to the service, in my case https://" + SERVICE_HOST + "/v2/
. The other values should be self explanatory, and …