[Java] HttpClient 4.0. How to get a page's content as a byte array or String?

Discussion in 'Programming' started by freedom2005, May 15, 2009.

  1. #1
    I'm trying to make some tool using HttpClient 4.0 and I have a question.
    How to get a page's content as a byte array or a String regardless of the HTTP version (1.0 or 1.1)?
    Assuming that the page is available, the response is "200 OK".
     
    freedom2005, May 15, 2009 IP