If you already know the basic authentication information, you can set up the 
http4 endpoint uri options just like this

http4://BackEndAddress?authUsername=WS111920._.1&authPassword=0WRtTq1K&authenticationPreemptive=true
 

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On August 13, 2014 at 11:52:30 PM, apache999 ([email protected]) wrote:
> Is there any way to send HTTP basic authorization(preemptive authentication)
> to another web service(from HTTP4).
>  
> I have a proxy with Jetty consuming and HTTP4 producing.
>  
> Here is some sample code in the webservice documentation -
>  
> Options options = ipgstub._getServiceClient().getOptions();
> HttpTransportProperties.Authenticator auth = new
> HttpTransportProperties.Authenticator();
> auth.setPreemptiveAuthentication(true);
> auth.setUsername("WS111920._.1");
> auth.setPassword("0WRtTq1K");
> options.setProperty(HTTPConstants.AUTHENTICATE,auth);
>  
> Thanks!
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/HTTP-basic-authorization-with-HTTP4-tp5755181.html
>   
> Sent from the Camel - Users mailing list archive at Nabble.com.
>  

Reply via email to