I am trying to get the descriptions of grants from the Carnegie Foundation and to do so, I need to open links to get the Document. This works on browsers, but not when I use JSoup.connect(url).get() on Eclipse. My code works with other links but not these type specifically. Is there a work-around? One of the links is "https://www.carnegie.org/grants/grants-database/grant/680882743.0/".
try {           
        currentDoc = Jsoup.connect(url).get();
    } catch (IOException e) {
        throw new IllegalArgumentException("URL cannot be reached");
    } catch (Exception e) {
        throw new RuntimeException();
    }
 
    