Lines Matching full:curl
13 * Creates curl resources from a request
36 if (isset($options['curl']['body_as_string'])) {
37 $options['_body_as_string'] = $options['curl']['body_as_string'];
38 unset($options['curl']['body_as_string']);
51 if (isset($options['curl'])) {
52 $conf = array_replace($conf, $options['curl']);
86 * Completes a cURL transaction, either returning a response promise or a
148 // Retry when nothing is present or when curl failed to rewind.
183 'cURL error %s: %s (%s)',
186 'see https://curl.haxx.se/libcurl/c/libcurl-errors.html'
190 'cURL error %s: %s (%s) for %s',
193 'see https://curl.haxx.se/libcurl/c/libcurl-errors.html',
267 // [curl][body_as_string] request value is set.
290 // If the Expect header is not present, prevent curl from adding it
295 // cURL sometimes adds a content-type by default. Prevent this.
307 // cURL requires a special format for empty headers.
374 // Don't let curl send the header over the wire
384 // Ensure that the directory exists before failing in curl.
408 // CURL default value is CURL_IPRESOLVE_WHATEVER
502 * typically means you are sending a payload, curl encountered a
531 $ctx['error'] = 'The cURL request was retried 3 times '
533 . 'is that cURL was unable to rewind the body of the request '
571 // a curl header write error by returning 0.