Lines Matching full:curl

16  * Creates curl resources from a request
49 if (isset($options['curl']['body_as_string'])) {
50 $options['_body_as_string'] = $options['curl']['body_as_string'];
51 unset($options['curl']['body_as_string']);
64 if (isset($options['curl'])) {
65 $conf = \array_replace($conf, $options['curl']);
97 * Completes a cURL transaction, either returning a response promise or a
153 // Retry when nothing is present or when curl failed to rewind.
198 'cURL error %s: %s (%s)',
201 'see https://curl.haxx.se/libcurl/c/libcurl-errors.html'
281 // [curl][body_as_string] request value is set.
302 // If the Expect header is not present, prevent curl from adding it
307 // cURL sometimes adds a content-type by default. Prevent this.
319 // cURL requires a special format for empty headers.
385 if (!isset($options['curl'][\CURLOPT_ENCODING]) && !empty($options['decode_content'])) {
407 // Ensure that the directory exists before failing in curl.
423 // CURL default value is CURL_IPRESOLVE_WHATEVER
460 …ntException('Invalid crypto_method request option: TLS 1.0 not supported by your version of cURL');
465 …ntException('Invalid crypto_method request option: TLS 1.1 not supported by your version of cURL');
470 …ntException('Invalid crypto_method request option: TLS 1.2 not supported by your version of cURL');
475 …ntException('Invalid crypto_method request option: TLS 1.3 not supported by your version of cURL');
493 // see https://curl.se/libcurl/c/CURLOPT_SSLCERTTYPE.html
538 * typically means you are sending a payload, curl encountered a
567 $ctx['error'] = 'The cURL request was retried 3 times '
569 .'is that cURL was unable to rewind the body of the request '
614 // a curl header write error by returning 0.