Aug 24th, 2012, 07:56 AM
Send parameter in a POST request using http:outbound-gateway
Maybe it is a silly question but...
I am using an http:outbound-gateway and custom transformers, I need to create a POST request with parameters, but I really don't understand how I can put the parameters into my request.
I tested to put a map in payload, in the header, but nothing, it does not work
If someone can give me info or tutorials to help?
Thanks in advance
Aug 24th, 2012, 08:25 AM
To send a POST via <http:outbound-gateway> like a 'form submit' you really should place in the paylod a Map, but both keys & values have to be String.
Aug 24th, 2012, 08:49 AM
I already did it before but to be sure, I made another test and now... It works
I think that there was something wrong in my config during my previous attempts.
But thank you Cleric for your quick answer
Tags for this Thread