php curl抛出请求不等待

来源:互联网 发布:单片机读取jp 编辑:程序博客网 时间:2024/06/05 16:34

请求程序加:

curl_setopt($ch, CURLOPT_TIMEOUT, 1);

接收程序头部加

ignore_user_abort();


header('HTTP/1.1 200 OK');


header('Content-Length:0');


header('Connection:Close');


flush();  

原创粉丝点击