View Single Post
Join Date: Nov 2008
Posts: 254
Reputation: Antenka has a spectacular aura about Antenka has a spectacular aura about Antenka has a spectacular aura about 
Solved Threads: 65
Antenka's Avatar
Antenka Antenka is online now Online
Posting Whiz in Training

Re: Problem with remote applications interaction using URL

 
0
  #5
Nov 17th, 2008
Yeah ... THANKS... IT WORKS (almost). So I have another problem:
server catches the client connections, but when I'm trying to read from InputStream
  1. BufferedReader is = new BufferedReader(new InputStreamReader(socket.getInputStream()));
  2.  
  3. //....
  4.  
  5. String line;
  6. while ((line = is.readLine()) != null)
  7. {
  8.  
  9. request += "\n" + line;
  10. }
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
  1. 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
Reply With Quote