title: Send POST request in camel route
body: <p>I am using Apache camel to implement a SOA integration layer.</p>
  
  <p>But I have some problems when i am trying to send a POST request to an external web service.</p>
  
  <p>this is my camel route:</p>
  
  <pre><code>from("jetty:http://localhost:5000/plus_grand")
      .setHeader(Exchange.HTTP_METHOD , constant("POST"))
      .to("http://localhost/sub?bridgeEndpoint=false&amp;throwExceptionOnFailure=false")
  </code></pre>
  
  <p><code>http://localhost/sub</code> is a simple php page. this page print the request information.</p>
  
  <p>the code is:</p>
  
  <pre><code>echo "&lt;pre&gt;";
      print_r($_SERVER);
  echo "&lt;/pre&gt;";
  </code></pre>
  
  <p>when I am trying to run that, I get this result:</p>
  
  <pre><code>Array
  (
      [HTTP_HOST] =&gt; localhost
      [HTTP_USER_AGENT] =&gt; Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0
      [HTTP_ACCEPT] =&gt; text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
      [HTTP_ACCEPT_LANGUAGE] =&gt; en-US,en;q=0.5
      [HTTP_ACCEPT_ENCODING] =&gt; gzip, deflate
      [HTTP_COOKIE] =&gt; csrftoken=rqcFAHftMkWsDEoLudTWIjPseAU7sJ40; oauth_consumer_key=136a3fd63028e1d157c6b939bcbe771c2dfe5710
      [HTTP_CONNECTION] =&gt; keep-alive
      [PATH] =&gt; /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
      [SERVER_SIGNATURE] =&gt; 
  Apache/2.4.7 (Ubuntu) Server at localhost Port 80
  
  
      [SERVER_SOFTWARE] =&gt; Apache/2.4.7 (Ubuntu)
      [SERVER_NAME] =&gt; localhost
      [SERVER_ADDR] =&gt; 127.0.0.1
      [SERVER_PORT] =&gt; 80
      [REMOTE_ADDR] =&gt; 127.0.0.1
      [DOCUMENT_ROOT] =&gt; /var/www/html
      [REQUEST_SCHEME] =&gt; http
      [CONTEXT_PREFIX] =&gt; 
      [CONTEXT_DOCUMENT_ROOT] =&gt; /var/www/html
      [SERVER_ADMIN] =&gt; webmaster@localhost
      [SCRIPT_FILENAME] =&gt; /var/www/html/sub/index.php
      [REMOTE_PORT] =&gt; 38604
      [GATEWAY_INTERFACE] =&gt; CGI/1.1
      [SERVER_PROTOCOL] =&gt; HTTP/1.1
      [REQUEST_METHOD] =&gt; GET
      [QUERY_STRING] =&gt; 
      [REQUEST_URI] =&gt; /sub/
      [SCRIPT_NAME] =&gt; /sub/index.php
      [PHP_SELF] =&gt; /sub/index.php
      [REQUEST_TIME_FLOAT] =&gt; 1480887502.957
      [REQUEST_TIME] =&gt; 1480887502
  )
  </code></pre>
  
  <p>You can see, the request method is <code>GET</code>.</p>
  
  <p>Please, what is the problem.</p>