How do I perform HTTP GET method?


Below is an example using Commons HttpClient library to retrieve information from a website using HTTP GET method. The response will be returned as string by the HttpMethod.getResponseBodyAsString() method.

Filed in: Commons HttpClient
© 2014 Java Examples - Built with love by Wayan Saryada.