title: How to pass Javascript actions in a cURL request
body: <p>I'm issuing a cURL GET request to a webpage to download the HTML. The webpage has scroll based content display like a Facebook timeline, i.e. initially only loads some content and then incrementally loads more as user scrolls.</p>
  
  <p>I'm wondering if I can leverage JS and use something like <code>window.scroll(0, document.height)</code> with the cURL GET request to specify a height the page should scroll to. I know what height I need to scroll to to get the HTML I need on all webpages of the site.</p>
  
  <p>My cURL request looks like the following:</p>
  
  <pre><code>curl -X GET 'https://www.mywebsite.com/username/photos' --verbose --user-agent $USER_AGENT --cookie $COOKIES --cookie-jar $COOKIES
  </code></pre>