V
V
Victorius2020-04-22 19:26:12
Google Chrome
Victorius, 2020-04-22 19:26:12

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.
5ea06eec31c98050192102.jpeg

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();

I get an error 401 in response.

Tell me what type of authorization should help? I tried different options, but all are based on basic.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question