title: How do I set the Content-Type on a camel-restlet producer request?
body: <p>I need to consume simple Rest service, but their implementation breaks if my request goes out with Content-type: application/x-www-form-urlencoded. I need to set it as "application/json"or be faced with a status 415.</p>
  
  <p>I am using the restlet producer component because it is already used throughout and so far it had hit the sweet spot between functionality and simplicity. So far. </p>
  
  <p>Anyway, trying to set the header in my route seems to have zero effect and the content-type of my request remains as application/x-www-form-urlencoded. Here is my test code:</p>
  
  <pre><code>    from("direct:getImg")
              .setHeader(RestletConstants.RESTLET_LOGIN, simple("admin"))
              .setHeader(RestletConstants.RESTLET_PASSWORD, simple("admin"))
              .setHeader(Exchange.CONTENT_TYPE, simple("application/json"))
              .to("restlet:http://requestb.in/12sowlx1?restletMethod=get&amp;throwExceptionOnFailure=false")
  </code></pre>
  
  <p>I obviously am missing something, but I cant find any example. Can anyone point the right way to do it?</p>
  
  <p>Thanks!</p>