Hi,

as it turns out HTTPPosts to Apache Sling require preemptive authentication, which the HttpClients 4x (Apache Http Components) do not do or provide out of the box.

You can have a look here:

http://mail-archives.apache.org/mod_mbox/sling-users/201005.mbox/%[email protected]%3E

which points out the problem

and here for the workaround

http://hc.apache.org/httpcomponents-client-ga/tutorial/html/authentication.html#d5e1031


I applied this solution and it now works.

Günther

Reply via email to