Skip to content

When using HttpComponentsClientHttpRequestFactory, setting a proxy through RequestConfig should not be ignored [SPR-12335] #16940

Closed
@spring-projects-issues

Description

@spring-projects-issues

Olivier Orand opened SPR-12335 and commented

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.

Regards,
Olivier


Affects: 4.0.5, 4.1.1

Reference URL: https://github.com/Orange-OpenSource/spring-http-proxy-testcase

Issue Links:

1 votes, 5 watchers

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: duplicateA duplicate of another issuetype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions