i'm trying to pass a request from my swing client to a servlet i worte but the request doesnt apper to deleavered
in the client i worte:
URL url = new URL("myServletURL");
URLConnection connection = url.openConnection();
connection.setDoOutput(true);
OutputStreamWriter out = new OutputStreamWriter(connection.getOutputStream());
out.write("MyRequest");
out.close();
and a the servlet i tried many ways to get request:
request.getQueryString()
and
ServletInputStream sin = request.getInputStream();
but that didn't work.
can someone help me...
thank you.