Ticket #7481: 7481.r8522.diff
File 7481.r8522.diff, 986 bytes (added by , 16 years ago) |
---|
-
http.php
871 871 872 872 if ( true === $r['blocking'] ) { 873 873 curl_setopt( $handle, CURLOPT_HEADER, true ); 874 curl_setopt( $handle, CURLOPT_RETURNTRANSFER, 1 ); 874 875 } else { 875 876 curl_setopt( $handle, CURLOPT_HEADER, false ); 876 877 curl_setopt( $handle, CURLOPT_NOBODY, true ); 878 curl_setopt( $handle, CURLOPT_RETURNTRANSFER, 0 ); 877 879 } 878 880 881 var_dump($r['timeout'], (int) $r['timeout']); 879 882 curl_setopt( $handle, CURLOPT_RETURNTRANSFER, 1 ); 880 883 curl_setopt( $handle, CURLOPT_USERAGENT, $r['user-agent'] ); 881 884 curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, 1 ); … … 894 897 curl_setopt( $handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1 ); 895 898 896 899 if ( ! $r['blocking'] ) { 900 curl_exec( $handle ); 897 901 curl_close( $handle ); 898 902 return array( 'headers' => array(), 'body' => '', 'response' => array('code', 'message') ); 899 903 }