title: How to call an URL with php without redirect
body: <p>I'm using an URL to transmit parameters to a remote location. 
  I need to call the URL using PHP - without redirecting to the URL.</p>
  
  <p>I've tried  different solutions without luck. I am no way near an expert when dealing with PHP, I am even unsure if I am wording the question correctly.</p>
  
  <p>I've tried:</p>
  
  <pre><code>$curl = curl_init();
  curl_setopt ($curl, CURLOPT_URL, "https://remotelocation.com/storedata.aspx?name=".$name."&amp;email=".$email_address.);
  curl_exec ($curl);
  curl_close ($curl);
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>file_get_contents("https://remotelocation.com/storedata.aspx?name=".$name."&amp;email=".$email_address.")
  </code></pre>
  
  <p>without any luck.</p>
  
  <p>Calling the URL manually in a browser (using definite values instead of variables) the data is stored. Using mail() instead the data is also transmitted.</p>
  
  <p>I know the solution must be pretty simple. Can anyone help to point me in the right direction?</p>