E
ennio
Hi everybody.
I need to connect to a servlet, because i want to send an http request
with some parameters.
This is the code:
URL url = new URL("http://blahblahblah.com.../servlet?var1=value");
HttpURLConnection connection = (HttpURLConnection)
url.openConnection();
connection.getInputStream();
The point is that connection.getInputStream() waits for the for the
whole processed response of the servlet. But i don't want to wait,
because the server-side is a long process and i don't mind about the
output. I just want to send the request.
How can i accomplish that? If i write a raw-socket request, will the
server (tomcat) kill the servlet thread if i close the socket? Do i
really need to write a raw-socket request?
thanks
I need to connect to a servlet, because i want to send an http request
with some parameters.
This is the code:
URL url = new URL("http://blahblahblah.com.../servlet?var1=value");
HttpURLConnection connection = (HttpURLConnection)
url.openConnection();
connection.getInputStream();
The point is that connection.getInputStream() waits for the for the
whole processed response of the servlet. But i don't want to wait,
because the server-side is a long process and i don't mind about the
output. I just want to send the request.
How can i accomplish that? If i write a raw-socket request, will the
server (tomcat) kill the servlet thread if i close the socket? Do i
really need to write a raw-socket request?
thanks