[php-src] PR #13255: ext/curl: Add `CURLOPT_PREREQFUNCTION`
| From: | Ayesh | Date: | Fri, 26 Jan 2024 16:54:30 +0000 |
| Subject: | [php-src] PR #13255: ext/curl: Add `CURLOPT_PREREQFUNCTION` | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24902@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13255
Author: Ayesh
Curl >= 7.80.0 supports declaring a function for
CURLOPT_PREREQFUNCTION option that
gets called after Curl establishes a connection (including the TLS handshake for HTTPS connections),
but before the actual request is made.
The callable must return either CURL_PREREQFUNC_OK or
CURL_PREREQFUNC_ABORT to allow or abort the request.
This adds support for it to PHP with required ifdef.
- libc: https://curl.se/libcurl/c/CURLOPT_PREREQFUNCTION.html