Hi
Suppose i have an URL http://myhost:8080/myServlet?test=abc&test1=klm

Now i need to set parameters test and test1,
the code i have is

HttpClient client = new HttpClient();
GetMethod method = new GetMethod("http://myhost:8080/myServlet";);
method.getParams().setParameter(HttpMethodParams.RETRY_HANDLER,new
DefaultHttpMethodRetryHandler(3, false));
int statusCode = client.executeMethod(method);
if (statusCode != HttpStatus.SC_OK) {
System.err.println("Method failed: " + method.getStatusLine());
}
InputStream is =method.getResponseBodyAsStream();


Now how do i add test and test1 parameters to be passed to the URL

Ashish

Reply via email to