question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot download javadoc package list from JUnit web site

See original GitHub issue

I’m trying to get javadoc package list from this url http://junit.org/junit4/javadoc/latest/package-list using HttpURLConnection. This results in the following request being issued:

GET http://junit.org/junit4/javadoc/latest/package-list HTTP/1.1
User-Agent: Java/1.8.0_144
Host: junit.org
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

Then this request gets rejected with 403 error and the following body

Error 1010 Ray ID: 3e9f21c3f0ae871b • 2018-02-08 14:03:21 UTC

Access denied What happened? The owner of this website (junit.org) has banned your access based on your browser’s signature (3e9f21c3f0ae871b-ua21).

Obviously, I could change the User-Agent header to something else, but the question is why do you prohibit that default Java user-agent header in the first place?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
panchenkocommented, Feb 8, 2018

That’s protection from cloudflare, might be they classify java as a bot.

0reactions
ilya-gcommented, Feb 8, 2018

@marcphilipp Now it’s fine, thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to download Javadoc to read offline? - Stack Overflow
Go to the Java SE page, select the Downloads tab and under the Additional downloads, there're Download buttons for the docs. If you...
Read more >
Cannot access package-list in published Javadoc #1289
An upgrade in the JDK used to generate Javadoc for JUnit 5 caused the package-list file to stop being published beginning with JUnit...
Read more >
Download Sources and Javadocs with Maven - Baeldung
In this short tutorial, we'll see how to configure Maven, or ask of Maven, to download the dependency sources and their Javadocs for...
Read more >
Eclipse: Downloading & Enabling Javadocs
Eclipse: Downloading & Enabling Javadocs. This tutorial shows you how to download the official Java 10 Standard Edition (SE) documentation (or "Javadocs"), ...
Read more >
Javadoc Command - Oracle Help Center
Names of files that contain a list of javadoc command options, package names, ... For more details on security issues related to web...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found