title: Apache Camel HTTPS4 Basic Authentication
body: <p>Does Camel-Http4 supports Basic Authentication?</p>
  
  <p>Followed this and other posts
  <a href="https://stackoverflow.com/questions/29981142/camel-http4-download-file-using-basic-authentication-over-https">Camel http4 download file using Basic authentication over Https</a></p>
  
  <p>I am using camel 2.17.3 version. using camel-http4 component. The route sends a <strong>https4</strong> multipart request to a REST endpoint . The REST service is behind the siteminder. Have truststore/ketstore/cert all setup and it works fine, just sending basic auth is causing trouble.</p>
  
  <p>Using postman i was able to call REST services with basic auth. However, all the calls from camel route fails and get HTTP error 403.</p>
  
  <p>I tried below options to get it working:</p>
  
  <ol>
  <li>Added basic auth to the HttpConfiguration - got HTTP error 401</li>
  <li>Added "Authorization" header to the route, as mentioned in the above link - got HTTP error 403</li>
  <li>and Added method,user,pass to HTTP_Query - 403 also clear text password is visible in the siteminder logs, this is not good, so dropped trying this option.</li>
  </ol>
  
  <p>please help resolve this issue with some working example and explain the cause.</p>
  
  <p>Is camel dropping http headers?</p>
  
  <p>also i now thinking should I consider using other available components netty/jetty/cxf?? But I prefer getting HTTPs4 working :)</p>
  
  <p>thanks</p>