aimueller
asked on
how to write a stream to a servlet without socket!!
how to write a stream to a servlet without socket!!
And how can I get rhe response ( something like response.getWriter() ??)
Thanks
And how can I get rhe response ( something like response.getWriter() ??)
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Bah...only a B grade?
Oh well...good luck with it...
Tim
Oh well...good luck with it...
Tim
try
{
URL url = new URL("http://hostname:80/cgi");
URLConnection conn = url.openConnection();
BufferedReader rd = new BufferedReader(new InputStreamReader(conn.get
String line;
while ((line = rd.readLine()) != null)
{
// Process line...
}
rd.close();
}
catch (Exception e)
{
}