title: php cURL POST how to follow location
body: <p>I am in a bit of a rut with a cURL issue. The post works greate, the data is POSTED just fine and received ok, but the url of the posted page never appears in the browser after the cURL session is executed, for example look at the following code:</p>
  
  <pre><code>    $ch = curl_init("http://localhost/eterniti/cart-step-1.php");
      curl_setopt($ch, CURLOPT_HEADER, false);
      curl_setopt($ch, CURLOPT_POST, true);
      curl_setopt($ch, CURLOPT_POSTFIELDS, "error=1&amp;em=$em&amp;fname=$fname&amp;lname=$lname&amp;email1=$email1&amp;email2=$email2&amp;code=$code&amp;area=$area&amp;number=$num&amp;mobile=$mobile&amp;address1=$address1&amp;address2=$address2&amp;address3=$address3&amp;suburb=$suburb&amp;postcode=$postcode&amp;country=$country");
      curl_exec($ch);
      curl_close($ch);
  </code></pre>
  
  <p>The post works fine and I am taken to the cart-step-1.php where I can process the posted data, HOWEVER the location in the URL address bar of the browser remains that of the script page, in this case proc_xxxxxx.php</p>
  
  <p>Any ideas how to get the URL address to reflect the page I am actually POSTED to?</p>
  
  <p>Thanks a mill</p>