Yeah ... THANKS... IT WORKS (almost). So I have another problem:
server catches the client connections, but when I'm trying to read from InputStream
BufferedReader is = new BufferedReader(new InputStreamReader(socket.getInputStream()));
//....
String line;
while ((line = is.readLine()) != null)
{
request += "\n" + line;
}
it reads information:
"
POST / HTTP/1.1
Connection: close
Keep-Alive: 300
User-Agent: Java/1.6.0_07
Host: localhost:2604
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Content-type: application/x-www-form-urlencoded
Content-Length: 38
key1=search%09StudentRecBook%09123"
and after that stops at
while ((line = is.readLine()) != null)
like waiting for reading something else from stream.
What he is waiting for? Help
So what if you can see the darkest side of me?
No one would ever change this animal I have become
Help me believe it's not the real me
Somebody help me tame this animal