Subversion Repositories cheapmusic

Rev

Rev 143 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 143 Rev 156
Line 56... Line 56...
56
            'Accept-Charset: UTF-8,*;q=0.5',
56
            'Accept-Charset: UTF-8,*;q=0.5',
57
            'Authorization: Bearer ' . $token
57
            'Authorization: Bearer ' . $token
58
        );
58
        );
59
 
59
 
60
        $ch = curl_init();
60
        $ch = curl_init();
-
 
61
        if (defined('CURL_HTTP_VERSION_2_0')) {
-
 
62
            curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0);
-
 
63
        }
61
        curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
64
        curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
62
        curl_setopt($ch, CURLOPT_ENCODING, "gzip,deflate");
65
        curl_setopt($ch, CURLOPT_ENCODING, "gzip,deflate");
63
        curl_setopt($ch, CURLOPT_URL, $url);
66
        curl_setopt($ch, CURLOPT_URL, $url);
64
        curl_setopt($ch, CURLOPT_AUTOREFERER, true);
67
        curl_setopt($ch, CURLOPT_AUTOREFERER, true);
65
        curl_setopt($ch, CURLOPT_HEADER, 0);
68
        curl_setopt($ch, CURLOPT_HEADER, 0);