[php-src] PR #17816: ext/curl: Add `CURLINFO_{USED_PROXY,HTTPAUTH_USED,PROXYAUTH_USED}`

From: Date: Sat, 15 Feb 2025 13:16:38 +0000
Subject: [php-src] PR #17816: ext/curl: Add `CURLINFO_{USED_PROXY,HTTPAUTH_USED,PROXYAUTH_USED}`
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-30795@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/17816 Author: Ayesh Adds support for curl_getinfo() info keys and additional array keys: - [CURLINFO_USED_PROXY](https://curl.se/libcurl/c/CURLINFO_USED_PROXY.html) - libcurl >= 8.7.9 - Zero if no proxy was used in the previous transfer or a non-zero value if a proxy was used. - [CURLINFO_HTTPAUTH_USED](https://github.com/curl/curl/blob/curl-8_12_0/docs/libcurl/opts/CURLINFO_HTTPAUTH_USED.md) - libcurl >= 8.7.9 - Bitmask indicating the authentication method that was used in the previous HTTP request. - [CURLINFO_PROXYAUTH_USED](https://github.com/curl/curl/blob/curl-8_12_0/docs/libcurl/opts/CURLINFO_PROXYAUTH_USED.md) - libcurl >= 8.12.0 - Bitmask indicating the authentication method that was used in the previous request done over an HTTP proxy. ```php curl_getinfo($ch); ``` ```php [ // ... "used_proxy" => 0, "httpauth_used" => 0, "proxyauth_used" => 0, ] ``` Because the built-in server ext/curl tests use does not support HTTP authentication, there is an online test that uses httpbin. It will be skipped by default unless online tests are run.

« previous php.git-pulls (#30795) next »