PROXY Drupal parameters are not used
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3138152. -->
Reported by: [slayne40](https://www.drupal.org/user/838260)
>>>
<p>Hy,</p>
<p>In order to be able to reach external urls, the site can use a proxy.</p>
<p>Drupal can be configured with this lines:</p>
<pre> $settings['http_client_config']['proxy']['http'] = 'IP:PORT';<br> $settings['http_client_config']['proxy']['https'] = 'IP:PORT';<br> $settings['http_client_config']['proxy']['no'] = ['127.0.0.1', 'localhost'];</pre><p>But it doesn't work, because it is not considered by the GuzzleHttp\Client class.</p>
<p>So I replaced in the code all calls to this class:<br>
<code> $client = new Client();</code><br>
by<br>
<code> $client = \Drupal::service('http_client_factory')->fromOptions();</code></p>
issue