Announcement Announcement Module
Collapse
No announcement yet.
Send parameter in a POST request using http:outbound-gateway Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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

    Comment


    • #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

      Comment

      Working...
      X