Bundled Apache HTTP client - no proxy | Community
Skip to main content
Level 2
January 31, 2019
Solved

Bundled Apache HTTP client - no proxy

  • January 31, 2019
  • 2 replies
  • 1031 views

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.
Best answer by smacdonald2008

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

2 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
January 31, 2019

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

Gaurav-Behl
Level 10
January 31, 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.