Announcement Announcement Module
No announcement yet.
making HTTP GET & POST requests in Spring Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • making HTTP GET & POST requests in Spring


    I currently have a utility class that uses HttpClient to create and execute Http Get/Post request. I was browsing the Pro Spring Book and was reading the remoting section. After further browsing I came accross the CommonsHttpInvokerRequestExecutor class. From reading the api it appears to permits me to execute Post requests which is great as I would rather use this which uses HttpClient under the covers, but I also need to be able to execute Get requests.

    Why doesn't this class permit Get request??

    Is there another way to execute Get requests??

    Basically I am sending both Get/Post requests to a Servlet based app by a 3rd party. The request takes the form:

    From the example url it can be seen that some parameters can take multiple values. I must be able to also send a post request with the key/value query string params.

    Hope this is enough of an explanation, if not please get back in touch.