Bundled Apache HTTP client - no proxy

peady

31-01-2019

AEM 6.2/3/4

Does anyone know if it's possible to use (or uses) the Apache HttpClient OSGi bundle (org.apache.httpcomponents.httpclient) without proxy settings?

In other words, if it's disabled by unchecking "Enable HTTP Proxy" and I try to use an instance of it via HttpClientBuilderFactory, will it behave as a regular Apache HTTP client?

I suspect so...

Regards,

David

(Don't say try it )

Accepted Solutions (1)

Accepted Solutions (1)

Answers (1)

Answers (1)

Gaurav-Behl

MVP

31-01-2019

By design, turning on proxy would simply apply the mentioned proxy settings on the underlying Factory setting. Hence, I also assume that it would work fine in the use cases where proxy is not required to be configured.

** I haven't tested the mentioned part.