Answer the question
In order to leave comments, you need to log in
What type of authorization for Jsoup?
Good afternoon
I recently purchased a miner, I want to automate the data collection process.
I'm trying to collect available information from a web client using Jsoup.
String username = "root";
String password = "root";
String login = username+":"+password;
String base64login = String.valueOf(Base64.encodeBase64(login.getBytes()));
Document document = Jsoup.connect( "http://192.168.0.203/network.html")
.header("Authorization", "Basic " + base64login)
.get();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question