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

  • making HTTP GET & POST requests in Spring

    Hi,

    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:

    http://foo.bar.com/service?service=E...1&idSearch=id2

    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.

    MARK

    CIAO
Working...
X