Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Moderate
Description
Today HTTP clients do tend to guess if they should use GET or POST etc. And you can override this with a message header. But it would also be good to specify that explicit as an uri parameter,
Today you have to do
from("direct:start") .setHeader(Exchange.HTTP_METHOD, constant(org.apache.camel.component.http4.HttpMethods.POST)) .to("http4://www.google.com") .to("mock:results");
But it would be good if you can do
from("direct:start") .to("http4://www.google.com?httpMethod=POST") .to("mock:results");