title: Converting this cURL for Guzzle
body: <p>I've tried reading through the Guzzle docs but I can't wrap my head around this problem.</p>
  
  <p>I want to use Guzzle instead of cURL for the following:</p>
  
  <pre><code>protected $url = 'https://secure.abcdef.com/cgi/xml_request_server.php';
  
      $xml =  "&lt;ABCRequest&gt;\n";
      $xml .=     "&lt;Authentication&gt;\n";
      $xml .=         "&lt;ABLogin&gt;$this-&gt;gwlogin&lt;/ABLogin&gt;\n";
      $xml .=         "&lt;ABKey&gt;$this-&gt;gwkey&lt;/ABKey&gt;\n";
      $xml .=     "&lt;/Authentication&gt;\n";
      $xml .=     "&lt;Request&gt;\n";
      $xml .=            "&lt;RequestType&gt;SearchABC&lt;/RequestType&gt;\n";
      $xml .=        "&lt;/Request&gt;\n";
      $xml .= "&lt;/ABCRequest&gt;\n";
  
      $header =  "POST $this-&gt;url HTTP/1.1\n";
      $header .= "Host: domain.com\n";
      $header .= "Content-Length: ".strlen($xml)."\n";
      $header .= "Content-Type: text/xml; charset=UTF8\n";
      $header .= "Connection: close; Keep-Alive\n\n";
      $header .= $xml;
  
      $ch = curl_init();
  
      curl_setopt($ch, CURLOPT_URL, $this-&gt;url);
      curl_setopt($ch, CURLOPT_TIMEOUT, 120);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
      curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $header);
  
      $response = curl_exec($ch);
      curl_close($ch);
  </code></pre>
  
  <p>I tried this but I'm still new at this...:</p>
  
  <pre><code>$client = new Client($this-&gt;url);
  $response = $client-&gt;get($xml);
  </code></pre>