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

Bundled Apache HTTP client - no proxy

  • January 31, 2019
  • 2 replies
  • 1025 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

Gaurav-Behl
New Participant
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.

smacdonald2008
smacdonald2008Accepted solution
New Participant
January 31, 2019

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