title: Setting screen resolution for PHP cURL request
body: <p>I was wondering if it is possible to force a screen resolution (for example: 1920 x 1080) for the php curl request, as I need to scrape some sites for images, but they come at 300px width, whereas visiting the site through the browser @ 1920 x 1080 will provide 620px images. I cannot just replace the file names as the paths are different for different sizes.</p>
  
  <p>Here's my very basic curl function: </p>
  
  <pre><code>private function curlPage($url)
  {
      try {
          $ch = curl_init();
          curl_setopt($ch, CURLOPT_URL,$url);
          curl_setopt($ch, CURLOPT_FAILONERROR,1);
          curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);
          curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
          curl_setopt($ch, CURLOPT_TIMEOUT, 15);
          $retValue = curl_exec($ch);          
          curl_close($ch);
      } catch (\Exception $e) {
          return $e;
      }
      return $retValue;
  }
  </code></pre>
  
  <p>If this isn't possible through cURL, is there any other PHP libs that could do something like this? I know it is achievable through a headless browser like phantomJs, combined with casper or some other extension, but i would prefer to keep it PHP.</p>