Expand my Community achievements bar.

SOLVED

OSGI Proxy Configuration

Avatar

Level 3

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?

1 Accepted Solution

Avatar

Correct answer by
Level 10

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.

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

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.

Avatar

Level 3

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?

Avatar

Level 10

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...