title: Sockets: BufferedReader readLine()
body: <p>I am using BufferedReader.readLine() method to read a response from a remote server </p>
  
  <pre><code>   String com;
     while ((com = bufferedReader.readLine()) == null) 
      {
      System.out.println(com+"\n");
      }
  </code></pre>
  
  <p>i was using following code and i got output like this </p>
  
  <pre><code>GET http://bioactress.blogspot.in/ HTTP/1.1
  
  Host: bioactress.blogspot.in
  
  User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/
  14.0.1
  
   Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  
    Accept-Language: en-us,en;q=0.5
  
   Accept-Encoding: gzip, deflate
  
    If-Modified-Since: Sat, 17 Nov 2012 07:43:35 GMT
  
   If-None-Match: "7f9584f0-06ba-448e-97a4-2b8bcd0b30b1"
  
    Cache-Control: max-age=0
  </code></pre>
  
  <p>How to retrieve  the host address only .i was try with array not some error will occur.please help me any one to get the host address</p>