Subversion Repositories cheapmusic

Rev

Rev 154 | Rev 158 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 154 Rev 156
Line 1398... Line 1398...
1398
        // Set optional user-agent
1398
        // Set optional user-agent
1399
        if ($userAgent) {
1399
        if ($userAgent) {
1400
            curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);
1400
            curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);
1401
        }
1401
        }
1402
 
1402
 
-
 
1403
        if (defined('CURL_HTTP_VERSION_2_0')) {
-
 
1404
            curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0);
-
 
1405
        }
1403
        curl_setopt($ch, CURLOPT_ENCODING, "gzip,deflate");
1406
        curl_setopt($ch, CURLOPT_ENCODING, "gzip,deflate");
1404
        curl_setopt($ch, CURLOPT_AUTOREFERER, true);
1407
        curl_setopt($ch, CURLOPT_AUTOREFERER, true);
1405
        curl_setopt($ch, CURLOPT_HEADER, 0);
1408
        curl_setopt($ch, CURLOPT_HEADER, 0);
1406
        curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
1409
        curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
1407
        curl_setopt($ch, CURLOPT_TIMEOUT, 15);
1410
        curl_setopt($ch, CURLOPT_TIMEOUT, 15);