Lines Matching defs:curl
174 protected $curl;
190 $this->curl = curl_init();
193 curl_setopt($this->curl, CURLOPT_PROXY, $http_proxy);
195 curl_setopt($this->curl, CURLOPT_PROXYPORT, $http_proxy_port);
204 curl_setopt($this->curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
205 curl_setopt($this->curl, CURLOPT_USERPWD, $auth_creds);
208 curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
209 curl_setopt($this->curl, CURLOPT_FOLLOWLOCATION, true);
210 curl_setopt($this->curl, CURLOPT_HTTPHEADER, static::DEFAULT_HTTP_HEADERS);
230 $this->curl,
250 $this->curl,
291 curl_setopt($this->curl, CURLOPT_URL, $this->url . $url);
295 curl_setopt($this->curl, CURLOPT_POST, 1);
297 curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, $http_method);
303 curl_setopt($this->curl, CURLOPT_HTTPHEADER, array_merge(static::DEFAULT_HTTP_HEADERS, ['Expect:']));
305 curl_setopt($this->curl, CURLOPT_HTTPHEADER, static::DEFAULT_HTTP_HEADERS);
319 curl_setopt($this->curl, CURLOPT_POSTFIELDS, $encoded_params);
321 $raw_results = trim(curl_exec($this->curl));
323 if ($error = curl_error($this->curl)) {