Hi,
this is my server code:
this is a client site:protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { boolean res = false; ... PrintWriter writer = response.getWriter(); writer.println(res); writer.close(); }
How can I get a res from server?... HttpURLConnection connection = (HttpURLConnection) url.openConnection(); ... BufferedReader reader = new BufferedReader( new InputStreamReader(connection.getInputStream()) ); ...
I can get "200 OK" (e.g. connection.getContent() etc.), I can get html (with reader), but I don't found, how can I get the res from writer.println(res).
Thanks in advance.
-booj