Home | History | Annotate | Download | only in lightopenid

Lines Matching refs:curl

42  * The library depends on curl, and requires PHP 5.
73 throw new ErrorException('Curl extension is required.');
118 $curl = curl_init($url . ($method == 'GET' && $params ? '?' . $params : ''));
119 curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
120 curl_setopt($curl, CURLOPT_HEADER, false);
121 curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
122 curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
124 curl_setopt($curl, CURLOPT_POST, true);
125 curl_setopt($curl, CURLOPT_POSTFIELDS, $params);
127 curl_setopt($curl, CURLOPT_HEADER, true);
128 curl_setopt($curl, CURLOPT_NOBODY, true);
130 curl_setopt($curl, CURLOPT_HTTPGET, true);
132 $response = curl_exec($curl);
134 if (curl_errno($curl)) {
135 throw new ErrorException(curl_error($curl), curl_errno($curl));