title: Curl Redirect Issue
body: <p>0I'm trying to redirect the user to a 'Thank You' page on success, I'm using a simple php redirect.</p>
  
  <pre><code>header('Location: http://client.com/thank-you-one.php');
  </code></pre>
  
  <p>and I've added it into the snippet below but the redirect still isn't working, if anyone know why or can see where I'm going wrong I'd love some feedback.</p>
  
  <pre><code>$username = '*****';
      $password = '*****';
  
  
      //POPULATE THESE (and other fields) WITH REQUEST DATA
      $first_name = $_POST['firstname'];
      $last_name = $_POST['lastname'];
      $email = $_POST['emailaddress'];
      $company_name = $_POST['companyname'];
      $date_of_birth = (''.$_POST['year'].'-'.$_POST['month'].'-'.$_POST['day'].'');
      $loyalty_number = $_POST['membernumber'];
  
      $host = 'http://api.client.com/users';
      $user_curl = curl_init($host);
      curl_setopt($user_curl, CURLOPT_HTTPHEADER, array('Accept: application/vnd.aardvark.crm+json; version=1.3'));
      curl_setopt($user_curl, CURLOPT_USERPWD, $username.":".$password);
      curl_setopt($user_curl, CURLOPT_TIMEOUT, 30);
      curl_setopt($user_curl, CURLOPT_POST, 1);
      curl_setopt($user_curl, CURLOPT_POSTFIELDS, http_build_query(array('forename' = &gt; $first_name, 'surname' = &gt; $last_name, 'email' = &gt; $email, 'company_name' = &gt; $company_name, 'date_of_birth' = &gt; $date_of_birth, 'loyalty_number' = &gt; $loyalty_number)));
      curl_setopt($user_curl, CURLOPT_RETURNTRANSFER, TRUE);
  
      $return = curl_exec($user_curl);
  
      $info = curl_getinfo($user_curl);
      if ($info['http_code'] == '200') {
          $data = json_decode($return, true);
  
          $tag_curl = curl_init($host.'/'.$data['id'].'/tags/'.$_POST['favorite'].'');
          curl_setopt($tag_curl, CURLOPT_HTTPHEADER, array('Accept: application/vnd.aardvark.crm+json; version=1.3'));
          curl_setopt($tag_curl, CURLOPT_USERPWD, $username.":".$password);
          curl_setopt($tag_curl, CURLOPT_TIMEOUT, 30);
          curl_setopt($tag_curl, CURLOPT_POST, 1);
          curl_setopt($tag_curl, CURLOPT_RETURNTRANSFER, TRUE);
          $tag_return = curl_exec($tag_curl);
  
  
          $ml_curl = curl_init($host.'/'.$data['id'].'/mailinglists/3');
          curl_setopt($ml_curl, CURLOPT_HTTPHEADER, array('Accept: application/vnd.aardvark.crm+json; version=1.3'));
          curl_setopt($ml_curl, CURLOPT_USERPWD, $username.":".$password);
          curl_setopt($ml_curl, CURLOPT_TIMEOUT, 30);
          curl_setopt($ml_curl, CURLOPT_PUT, 1);
          curl_setopt($ml_curl, CURLOPT_RETURNTRANSFER, TRUE);
          $tag_return = curl_exec($ml_curl);
  
  
  
          header('Location: http://client.com/thank-you-one.php');
          echo 'test1';
      exit;
  
      } else {
          //analyse resonse with 
          $data = json_decode($return, true);
          print_r($data);
          echo 'test2';
      }
  
  
      curl_close($user_curl);
      curl_close($tag_curl);
      curl_close($ml_curl);
  </code></pre>