I'm trying to connect to a url using JSoup. It works fine for one url but for another I get
java.net.SocketException: Connection reset
Here is the code that works:
Document doc = Jsoup.connect("https://finance.yahoo.com/quote/IBM/key-statistics?p=IBM").get();
Here is code that generates the error:
Document doc = Jsoup.connect("https://www.nasdaq.com/dividend-stocks/dividend-calendar.aspx?date=2018-Aug-17").get();
If you cut and paste those urls into a browser, they work fine. Suggestions?