OSGI Proxy Configuration | Community
Skip to main content
Level 3
November 7, 2016
Solved

OSGI Proxy Configuration

  • November 7, 2016
  • 3 replies
  • 2672 views

What is the difference between  Apache HTTP Components Proxy Configuration vs Day Commons HTTP Client 3.1 ? .

As I see both are doing the same proxy configuration. what is difference between them and which should we use in bundle?

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 Lokesh_Shivalingaiah

Day Commons HTTP client is just a wrapper around Apache HTTP components proxy consfiguration. You can use any one of them. However, Day Commons HTTP client has more support like NTLM authorization aswell.

3 replies

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
November 7, 2016

Day Commons HTTP client is just a wrapper around Apache HTTP components proxy consfiguration. You can use any one of them. However, Day Commons HTTP client has more support like NTLM authorization aswell.

Level 3
November 8, 2016

bsloki wrote...

Day Commons HTTP client is just a wrapper around Apache HTTP components proxy consfiguration. You can use any one of them. However, Day Commons HTTP client has more support like NTLM authorization aswell.

 

If we create a instance for HttpClient , like HttpClient httpClient= new HttpClient() , will this pick the proxy settings automatically? (if we configure the Day Commons HTTP client OSGI settings)

I tested above scenario and its not passing through proxy. is there any thing am missing?

Lokesh_Shivalingaiah
Level 10
November 8, 2016

Its like a service confiiguration. You need to read the configuration parameters and pass as the params for HttpClient to create the client.

Refer below links and hope it helps

https://docs.adobe.com/docs/en/aem/6-2/deploy/configuring/osgi-configuration-settings.html

https://helpx.adobe.com/experience-manager/using/HttpClient_AEM.html

You can also explore the bundle by downloading from here

https://repo.adobe.com/nexus/content/groups/public/com/day/commons/osgi/wrapper/com.day.commons.osgi.wrapper.commons-httpclient/3.1.0.018/