title: Problem connecting to a specific URL with Jsoup's connect method
body: <p>First off, the Jsoup's connect method may not be at fault; it's possible that my concern is due to a misunderstanding of Document's html() method, which is inherited from Element.</p>
  
  <p>The focus of my problem is extracting information from a specific URL, but due to the String that is currently being returned by Document's html() method I fear that  Jsoup's connect() method is not connecting to the specified URL but rather the generic URL of the website.</p>
  
  <p>This is the specific URL I would like my program to connect to:
  <a href="http://redditsearch.io/?term=&amp;dataviz=false&amp;aggs=false&amp;subreddits=&amp;searchtype=posts&amp;search=true&amp;start=1587355200&amp;end=1587441600&amp;size=100" rel="nofollow noreferrer">http://redditsearch.io/?term=&amp;dataviz=false&amp;aggs=false&amp;subreddits=&amp;searchtype=posts&amp;search=true&amp;start=1587355200&amp;end=1587441600&amp;size=100</a></p>
  
  <p>but instead I think it's only connecting to the generic URL of that website:
  <a href="http://redditsearch.io/" rel="nofollow noreferrer">http://redditsearch.io/</a></p>
  
  <p>The reason I believe this is because of the String that is returned by Document's html() method:</p>
  
  <pre><code>Document doc = Jsoup.connect("http://redditsearch.io/?term=&amp;dataviz=false&amp;aggs=false&amp;subreddits=&amp;searchtype=posts&amp;search=true&amp;start=1587355200&amp;end=1587441600&amp;size=100").get();
  String html = doc.html();
  System.out.println(html);
  </code></pre>
  
  <p>Which prints a whole lot of HTML so I will only share with you guys the pertinent aspect of it (bear in mind, the following text is returned from Document's html() method):</p>
  
  <pre><code>&lt;div id="results-container" class="data-display"&gt; 
   &lt;div id="posts" class="results"&gt;&lt;/div&gt; 
   &lt;div id="comments" class="results"&gt;&lt;/div&gt; 
  &lt;/div&gt;
  </code></pre>
  
  <p>This aspect of the HTML to this specific URL in my browser's inspector (firefox) looks like this (bear in mind, the following text is NOT returned by Document's html() method, rather it is displayed by the inspector in my browser):</p>
  
  <pre><code>&lt;div id="results-container" class="data-display"&gt; 
   &lt;div id="posts" class="results"&gt;&lt;/div&gt; 
    &lt;div class="submission"...&gt; &lt;/div&gt; (first line under "posts")
    ...
    &lt;div class="submission"...&gt; &lt;/div&gt; (Nth line under "posts")
   &lt;div id="comments" class="results"&gt;&lt;/div&gt; 
  &lt;/div&gt;
  </code></pre>
  
  <p>Meaning there are multiple lines under the div id="posts" tag when I connect my browser to the specific URL; however, there are no lines under that tag in my browser's inspector when I connect it to the generic URL "redditsearch.io" (i.e. this aspect of HTML looks just like the first HTML example given here in my inspector when my browser is connected to the generic URL). This is why I believe my program is connecting to the generic URL even though I use the specific URL for the argument. </p>