Hi,

I'm using the Apache Camel 2.17.0, the "camel-jetty" and "camel-http4" as a
proxy[1] to post a data to the dot NET / IIS7.0, It gives me a "HTTP Status
400 The request is badly formed".

After investigating by enabling the trace for "http-client", I've found
that the "camel-http4" put the request parameter to the HTTP header. After
I remove those unwanted headers, everything work fine.

Anyhow to remove them, I've to use the "removeHeaders()"[2], together with
keeping the "Camel*" and standard "HTTP header".

e.g. removeHeaders("*", "Camel*", "XXX|YYY|ZZZ...");

note: XXX, YYY, ZZZ are the list of standard "HTTP header".

It take around 1-2 mins for finishing this removing.

I'm not sure if I'm doing something wrong or not. Could you please help to
advise further? Thank you very much for your help in advance. I'm looking
forward to hearing from you soon.

[1]
http://camel.apache.org/how-to-use-camel-as-a-http-proxy-between-a-client-and-server.html

[2]
http://camel.apache.org/how-to-avoid-sending-some-or-all-message-headers.html

--
   Best Regards,

   Charlee Ch.

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Reply via email to