Bundled Apache HTTP client - no proxy | Community
Skip to main content
Level 2
Jan 31, 2019 6:22 PM UTC
Solved

Bundled Apache HTTP client - no proxy

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 )

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Jan 31, 2019 6:46 PM UTC

I have successfully used Apache HTTP API within an OSGi bundle to successfully invoke HTTP operations.

2 replies

Gaurav-Behl
Level 10
Jan 31, 2019 6:59 PM UTC

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.

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
Jan 31, 2019 6:46 PM UTC

I have successfully used Apache HTTP API within an OSGi bundle to successfully invoke HTTP operations.

Translate