title: How to execute curl commands in laravel 5.2?
body: <p>I have a curl command </p>
  
  <pre><code>curl -i -k https://anAddress.com/web/publication/add -d '{"title”:"uniqueIdxxxxxxx"}' -uexpress:Test0099887766 -H"Content-Type: application/json" -X POST
  </code></pre>
  
  <p>I need to run this CURL command in laravel. I tried using guzzle:</p>
  
  <pre><code>$client = new Client();
          $res = $client-&gt;request('POST', 'https://annAddress.com/web/publication/add', [
              'form_params' =&gt; [
                  'title' =&gt; 'xc123',
              ]
          ]);
  
          $result= $res-&gt;getBody();
          dd($result);
  </code></pre>
  
  <p>but I just get an error:</p>
  
  <pre><code>TooManyRedirectsException in RedirectMiddleware.php line 141:
  Will not follow more than 5 redirects
  </code></pre>