Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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
Community Advisor

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

0 Replies

Avatar

Correct answer by
Community Advisor

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

Community Advisor

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