idn_conversion
Summary
Internationalized Domain Name (IDN) support (enabled by default if intl
extension is available).
Types
- bool
- int
Default
true
if intl
extension is available (and ICU library is 4.6+ for PHP 7.2+), false
otherwise
Constant
GuzzleHttp\RequestOptions::IDN_CONVERSION
$client->request('GET', 'https://яндекс.рф');
// яндекс.рф is translated to xn--d1acpjx3f.xn--p1ai before passing it to the handler
$res = $client->request('GET', 'https://яндекс.рф', ['idn_conversion' => false]);
// The domain part (яндекс.рф) stays unmodified
Enables/disables IDN support, can also be used for precise control by combining IDNA_* constants (except IDNA_ERROR_*), see $options
parameter in idn_to_ascii() documentation for more details.