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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content