issue with basic authentication in camel http4 component

Solution Verified - Updated -

Issue

I am trying to call an http endpoint with basic authentication using camel-http component.

But when doing like this it doesn't work:

        <setHeader headerName="CamelHttpMethod">
            <constant>GET</constant>
        </setHeader>
        <setHeader headerName="CamelHttpQuery">
            <constant>name=foo&amp;authMethod=Basic&amp;authUsername=test&amp;authPassword=test</constant>
        </setHeader>
        <to id="_to1" uri="http4://www.example.com/abcd" />

Environment

  • Red Hat JBoss Fuse
    • 6.2.1
    • 6.3.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.