You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When using HttpComponentsClientHttpRequestFactory, setting a proxy through RequestConfig should not be ignored [SPR-12335] #16940
Hi,
When using httpComponentsClientHttpRequestFactory, setting a proxy through RequestConfig is ignored.
But when this requestConfig is used by HttpClient, it isn't ignored.
It seems to be a "wiring" issue between Spring and HttpClient.
As workaround, setting a custom route planner can be use. Maybe there is a better workaround.
The maven project demonstrates a working case with HttpClient and failure with RestTemplate and with httpComponentsClientHttpRequestFactory.
Test project start an in memory proxy, and try to access a url resolvable only using proxy.
Thanks a lot for the project Olivier! This is strongly related to #17144 actually and with the current proposal your tests run fine against it (except a wrong assertion that should use an HttpStatus and not a raw code). I'll make sure to run your project against master once the proposal has been merged to make sure this issue is resolved as well.
Activity
spring-projects-issues commentedon Dec 23, 2014
Juergen Hoeller commented
Stéphane Nicoll, along with #15739, let's have a look at this one for 4.1.4 still...
Juergen
spring-projects-issues commentedon Dec 24, 2014
Stéphane Nicoll commented
Thanks a lot for the project Olivier! This is strongly related to #17144 actually and with the current proposal your tests run fine against it (except a wrong assertion that should use an
HttpStatusand not a raw code). I'll make sure to run your project against master once the proposal has been merged to make sure this issue is resolved as well.spring-projects-issues commentedon Dec 29, 2014
Stéphane Nicoll commented
This was fixed as part of #17144
spring-projects-issues commentedon Jan 9, 2015
Olivier Orand commented
Hi Stéphane,
Great, thanks for the fix.
Olivier