PHP - curl_exec hangs
问题 I am having a strange problem with the below php function. Unfortunately this is one of those special "Production only" case. function requestPost($url, $data) { set_time_limit(60); $output = array(); $curlSession = curl_init(); if($curlSession == false) syslog(LOG_INFO,"Falied to create a curl sessions"); // Set the URL curl_setopt ($curlSession, CURLOPT_URL, $url); // No headers, please curl_setopt ($curlSession, CURLOPT_HEADER, 0); // It's a POST request curl_setopt ($curlSession, CURLOPT