All Questions
3 questions
-1
votes
1
answer
946
views
How to pass a variable in JSON request body string for http POST
I currently have a JSON request body as a string that I am also passing as a string in the BodyPublishers.ofString() method when using the java httpclient to send a POST request. I also want to be ...
0
votes
1
answer
2k
views
Java HttpClient - converting HttpResponse to String[]
I am new to java HttpClient and am currently trying to create a RestServiceApplication, but i am unable to convert a HttpResponse to a String array in order to access the elements of the array.
...
-2
votes
1
answer
5k
views
Upgrading Java 9 HttpClient code to Java 11: BodyProcessor and asString()
I have a code base which (apparently) works under Java 9 but does not compile under Java 11. It uses the jdk.incubator.httpclient API and changing the module information according to this answer works ...