Ignore cURL Response?
<p>I have a login script that passes data to another script for processing. The processing is unrelated to the login script but it does a bit of data checking and logging for internal analysis.</p>

<p>I am using cURL to pass this data, but cURL is waiting for the response. I do not want to wait for the response because it's causing the user to have to wait before the analysis is complete before they can log in.</p>

<p>I am aware that the request could fail, but I am not overly concerned.</p>

<p>I basically want it to work like a multi threaded application where cURL is being used to fork a process. Is there any way to do this?</p>

<p>My code is below:</p>

<pre><code>// Log user in

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,'http://site.com/userdata.php?e=' . $email);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$html = curl_exec($ch);
curl_close($ch);

// Redirect user to their home page
</code></pre>

<p>Thats all it does. But at the moment it has to wait for the cURL request to get a response.</p>

<p>Is there any way to make a get request and not wait for the response?</p>
