title: curl posting data multiple times for curl_setopt
body: <pre><code>$data = array();
  $handle = curl_init($api_url);
  curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($handle, CURLOPT_POST, true);
  curl_setopt($handle, CURLOPT_POSTFIELDS, $data);
  $result=curl_exec($handle);
  </code></pre>
  
  <p>I am too experienced with curl and debugging this code. The data gets posted successfully to the api url, but there is reports of the data being sent to the api 2 to 3 times each. I want to rule out the code above being the problem as I investigate potential a slow loading form after the user clicks submit, some users may click the submit button a couple times due to the form delay.</p>
  
  <p>Do you see anything above that would reveal it being posted the same data two or three times?</p>