-
Aug 24th, 2012, 07:56 AM
#1
Send parameter in a POST request using http:outbound-gateway
Hello,
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
#2
Hello
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.
To read:
http://static.springsource.org/sprin...#http-outbound
https://github.com/SpringSource/spri...ter/basic/http
https://github.com/SpringSource/spri...multipart-http
Take care,
Artem
-
Aug 24th, 2012, 08:49 AM
#3
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules