Hi Experts,
I have a backing bean with a HttpClient method to submit values to remote
client. The remote will then redirect me to another  URL base the recieved
paramerters.

I am using below code to achieve this but doesn't seem to work - i keep
getting back to the page doing the posting or simply executing the method in
the bean.

      HttpClient httpClient = new HttpClient();
      PostMethod postMethod = new PostMethod(url);
      NameValuePair[] data = {
        new NameValuePair("name1", value1),
        new NameValuePair("namen", valuen)
      };
      postMethod.setRequestBody(data);
      int responseCode = httpClient.executeMethod(postMethod);
      String responseBody = postMethod.getResponseBodyAsString();

Do anyone know why this is happening?

please help!
-- 
View this message in context: 
http://www.nabble.com/HttpClient-Return-tp21373474p21373474.html
Sent from the HttpClient-User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to