Код: Выделить всё
Java Error: Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: https://www.verbix.com/webverbix/korean/%EB%B0%9B%EB%8B%A4
Запрос PUT веб-клиента возвращает 403, а запрос Postman — нет — REST API Джерси на Glassfish
Почтальон:
[img]https://i. sstatic.net/YXWts.png[/img]
Java:
Код: Выделить всё
public static void main(String[] args) throws IOException {
URL url = new URL("https://api.verbix.com/conjugator/iv1/6153a464-b4f0-11ed-9ece-ee3761609078/1/8442/8442/%EB%B0%9B%EB%8B%A4");
HttpURLConnection con = (HttpURLConnection) url.openConnection();
con.setRequestMethod("GET");
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer content = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
content.append(inputLine);
}
System.out.println("JSON String Result " + content.toString());
in.close();
}
Невозможно получить элементы таблицы с помощью jsoup.
Подробнее здесь: https://stackoverflow.com/questions/760 ... or-postman