Hi,

it happens by design:

" Generally, preemptive authentication can be considered less
 * secure than a response to an authentication challenge
 * and therefore discouraged."
(see 
https://hc.apache.org/httpcomponents-client-4.3.x/httpclient/examples/org/apache/http/examples/client/ClientPreemptiveBasicAuthentication.java)

Regards,
Tom

-----Original Message-----
From: alexey-s [mailto:alex...@mail.ru] 
Sent: Dienstag, 29. Oktober 2013 11:47
To: users@camel.apache.org
Subject: Re: HTTP Basic Authentication

You'll be surprised. CXF uses the same library Apache HttpComponents.
CXF client initially twice sends an HTTP request. The first request without 
authorization. Second with authorization.

For a GET request such behavior is acceptable. For a POST request is very bad.


Aleksey



--
View this message in context: 
http://camel.465427.n5.nabble.com/HTTP-Basic-Authentication-tp5742229p5742348.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to