Apache HTTPClient Get and Post
January 8, 2010
Here's examples of calling GET and POST requests using the Apache HTTPClient library
Performing a GET
This code performs a GET call:
HttpClient lClient = new HttpClient(); HttpMethod lMethod = new GetMethod(lUrlToCall); int lCode = lClient.executeMethod(lMethod); String lResponse = lMethod. …