Hello Han, >_ webpage="http://m168.com/test_servlet"; >_ HttpClient client = new HttpClient(); >_ PostMethod httppost = new PostMethod(webpage); >_ >_ ServletInputStream sis= request.getInputStream(); ///these 2 line >can >_be replaced by set RequestEntity*** >_ httppost.setRequestBody(sis); // *** **************************** >_ >_ client.executeMethod(httppost);
Where do you set the Content-Type header for the request you are sending? Without that header, the target servlet can't know that you are sending parameters. Sorry for sending you off on the wrong trail. cheers, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
