title: Download file after login form with Goutte / Guzzle
body: <p>I want to login to a webpage and download a file.</p>
  
  <p>So far I tried the code underneath. The problem is that It seems I'm not authorized anymore. The file downloaded is the login.html page. </p>
  
  <p>Does someone know how to make this work? Thanks in advance!</p>
  
  <pre><code>&lt;?php
  
  require 'vendor/autoload.php';
  
  use Goutte\Client;
  
  $client = new Client();
  
  $crawler = $client-&gt;request('GET', 'https://website.com/login.php');
  
  $form = $crawler-&gt;selectButton('Login')-&gt;form();
  $crawler = $client-&gt;submit($form, array('username' =&gt; 'username', 'password' =&gt; 'password'));
  
  ...
  
  $download_link = 'https://website.com/extracted_download_link_from_crawler.pdf';
  
  $guzzleClient = $client-&gt;getClient();
  
  $response = $guzzleClient-&gt;get($download_link, ['save_to' =&gt; '/local_path/file.pdf']);
  </code></pre>