Subversion Repositories cheapmusic

Rev

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

Rev 154 Rev 156
Line 93... Line 93...
93
        foreach ($headers as $key => $value) {
93
        foreach ($headers as $key => $value) {
94
            $headerArr[] = $key . ': ' . $value;
94
            $headerArr[] = $key . ': ' . $value;
95
        }
95
        }
96
 
96
 
97
        $ch = curl_init();
97
        $ch = curl_init();
-
 
98
        if (defined('CURL_HTTP_VERSION_2_0')) {
-
 
99
            curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0);
-
 
100
        }
98
        curl_setopt($ch, CURLOPT_HTTPHEADER, $headerArr);
101
        curl_setopt($ch, CURLOPT_HTTPHEADER, $headerArr);
99
        curl_setopt($ch, CURLOPT_URL, 'https://' . $host . $uriPath);
102
        curl_setopt($ch, CURLOPT_URL, 'https://' . $host . $uriPath);
100
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
103
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
101
        curl_setopt($ch, CURLOPT_TIMEOUT, 15);
104
        curl_setopt($ch, CURLOPT_TIMEOUT, 15);
102
        curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
105
        curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);