Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Bundled Apache HTTP client - no proxy

Avatar

Level 2

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 )

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

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

Avatar

Level 10

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.