Hello,
I am trying to write a http proxy in java using sockets. I get the header of the browser. Then I forward it to the web server. Then I get the header from the server and the message.
Problem:
The server does not send the message length ( "Content-Length:")
How do I know where I must stop reading?
I tried several methods
Quote:
buffer = null
-tampon.equals ( "0"))
This does not work all the time.
is a string buffer (buffer = in.readLine ()).