camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: HTTP basic authorization with HTTP4?
Date Thu, 14 Aug 2014 02:07:41 GMT
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 (leoferro1@gmail.com) 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.
>  


Mime
View raw message