Q: why is connection being reset? 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?

A: Thanks to Pshemo in comments below, here is the answer:
    String address = "https://www.nasdaq.com/dividend-stocks/dividend-calendar.aspx?date=" +date;
    //Note: "userAgent required for this site to prevent java.net.SocketException: Connection reset" error
    String usrAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36";
    Document doc = Jsoup.connect(address).userAgent(usrAgent).get();

