Results 1 to 3 of 3

Thread: Send parameter in a POST request using http:outbound-gateway

  1. #1
    Join Date
    Nov 2011
    Posts
    7

    Default 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. #2
    Join Date
    Jan 2009
    Location
    Ukraine, Kharkov
    Posts
    640

    Default

    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

  3. #3
    Join Date
    Nov 2011
    Posts
    7

    Default

    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
  •