FAQ
Everything you wanted to know.
How to save a binary file?
final String link =
"https://repo1.maven.org/maven2" +
"/org/jodd/jodd-http/3.9.1/jodd-http-3.9.1.jar";
HttpResponse response = HttpRequest
.get(link)
.send();
byte[] bytes = response.bodyBytes();
FileUtil.writeBytes(
new File(SystemUtil.userHome(), "jodd-http.jar"), bytes);How to follow multi redirects?
HttpBrowser browser = new HttpBrowser();
browser.sendRequest(HttpRequest.get("google.com"));
// read response
Response response = browser.getResponse();
String page = browser.getPage();What is the difference between HttpRequest and HttpBrowser?
Server choses TLSv1.2, but that protocol version is not enabled?
SOCKS5: proxy returned 1
Last updated