title: How to get past login screen on Guzzle call
body: <p>I have to send information to an external website using cURL. I set up Guzzle on my Laravel application. I have the basics set up, but according to the documentation of the website, there is an action that's required for the username and password. How can I pass the 'action' along with the credentials needed to log in and get access?</p>
  
  <p><strong>The website states:</strong> </p>
  
  <p><code>curl [-k] –dump-header &lt;header_file&gt; -F “action=login” -F “username=&lt;username&gt;” -F “password=&lt;password&gt;” https://&lt;website_URL&gt;</code></p>
  
  <p><strong>My controller:</strong></p>
  
  <pre><code>    $client = new \GuzzleHttp\Client();
  
      $response = $client-&gt;get('http://website.com/page/login/', array(
          'auth' =&gt; array('username', 'password')
      ));
  
      $xml = $response;
      echo $xml;
  </code></pre>
  
  <p>The website will load on the <code>echo</code>, but it will only pull up the login screen. I need those credentials to bypass the login screen (with a successful login) to get to the portion of information I need for cURL.</p>