I was getting that error when using the http component, even though creds were 
correct.

When you call http, it will convert ALL exchange headers and send them along to 
the component. The extra headers caused a length mismatch with what was set for 
the http call. Once I 
put on a filter to remove headers that weren't necessary for the http call, it 
worked fine.

Still still may be a authentication problem for you, just be aware the response 
codes aren't always accurate. ;-)

On Oct 15, 2013, at 5:39 AM, jhonny <writedeshm...@live.com> wrote:

> Hi All,
> 
> I want to hit the rest url (http request GET) to get the data. so in my
> SPRING DSL file i had put the url as below in "from" tag.
> 
>   <from
> uri="http4://mydata.services.se/data/api/1?user=admin&amp;password=adminpass"
> />
> 
> Am using campel-http4 component for this. But in my appllication am getting
> the error response as below
> 
> "HTTP Status 401 - Full authentication is required to access this resource"
> 
> 
> [/I had tried the above url in browser and it work/ ]
> 
> Can somebody help me ?, how should i put the authorization in my above URL
> in my spring DSL file ?
> 
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/How-to-provide-basic-authoraizaton-user-password-in-Spring-DSL-to-acess-rest-webservice-tp5741597.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to