-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Closed
Labels
Description
Description
It would be nice if you could change the curl_setopt option to what every like you want at the moment it's not possible to change any and it's only using the defined ones.
Could there be a function or option param that will be used to change the curl to your liking ?
Example
$options = [
'curlOptions' => [
'CURLOPT_IPRESOLVE' => CURL_IPRESOLVE_V4,
],
];
/** @var CurlResponse $res */
$res = $httpClient->request(
$method,
$requestUrl,
$options
);
# Then when executing `vendor/symfony/http-client/AmpHttpClient.php` check for this option 'curlOptions' and pass it in curl_setopt_array