Lines Matching refs:curl

11  * Creates curl resources from a request
20 * @param null|resource $handle Optionally provide a curl handle to modify
22 * @return array Returns an array of the curl handle, headers array, and
40 if (isset($request['client']['curl'])) {
42 $request['client']['curl'],
90 return !empty($response['curl']['errno']) || !isset($response['status'])
108 // Retry when nothing is present or when curl failed to rewind.
110 && (empty($response['curl']['errno'])
111 || $response['curl']['errno'] == 65)
119 $response['curl']['errno'],
120 isset($response['curl']['error'])
121 ? $response['curl']['error']
122 : 'See http://curl.haxx.se/libcurl/c/libcurl-errors.html');
124 $error = isset($response['curl']['errno'])
125 && isset($connectionErrors[$response['curl']['errno']])
232 // [client][curl][body_as_string] request value is set.
234 isset($request['client']['curl']['body_as_string']) ||
251 // If the Expect header is not present, prevent curl from adding it
308 * Takes an array of curl options specified in the 'curl' option of a
311 * This method is only called when a request has a 'curl' config setting.
313 * @param array $config Configuration array of custom curl option
314 * @param array $options Array of existing curl options
316 * @return array Returns a new array of curl options
390 // Don't let curl send the header over the wire
517 * typically means you are sending a payload, curl encountered a
545 if (!isset($request['curl']['retries'])) {
546 $request['curl']['retries'] = 1;
547 } elseif ($request['curl']['retries'] == 2) {
555 $request['curl']['retries']++;