/ Published in: Java
This snippet shows how to do a simple lightweight HTTP request in Java and place the response content in a String.
Expand |
Embed | Plain Text
try { try { while ( (line = myReader.readLine()) != null ) { responseContent += line; } myReader.close(); }
You need to login to post a comment.
