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>&nbsp;&nbsp;&nbsp; $settings['http_client_config']['proxy']['http'] = 'IP:PORT';<br>&nbsp;&nbsp;&nbsp; $settings['http_client_config']['proxy']['https'] = 'IP:PORT';<br>&nbsp;&nbsp;&nbsp; $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>&nbsp;&nbsp;&nbsp; $client = new Client();</code><br> by<br> <code>&nbsp;&nbsp;&nbsp; $client = \Drupal::service('http_client_factory')-&gt;fromOptions();</code></p>
issue