我在获取 HttpResponse 时遇到错误。从服务器端正在写这样的响应
response.setContentType("text/plain");
PrintWriter writer = response.getWriter();
writer.write("login Successfull");
这是我的 httpClient 代码
HttpClient httpClient = new HttpClient();
PostMethod httpost = new PostMethod("http://localhost:8080/Test/newServlet");
httpost.addParameter("Email" , "my@emial");
httpost.addParameter("name" , "haseeb");
//Getting Error on this line...Saying "Cannot Find Symbol"
HttpResponse response = httpClient.execute(httpost);