Installing HttpClient and JSON Frameworks (REST-Based APIs)

To access REST resources, you’ll need to install HttpClient and JSON frameworks. HttpClient lets you access HTTP resources. The JSON framework lets you generate and parse JSON request and response data.

You’ll need to have the JDK installed on your local system to use the HttpClient and JSON frameworks.

  1. Navigate to http://hc.apache.org/downloads.cgi in your browser and download the binary archive of the latest “GA” version of HttpClient. Un-archive the downloaded file and move the directory to a location you’ll remember.
  2. Navigate to http://mvnrepository.com/artifact/org.json/json in your browser and download the latest binary .jar file. Copy this .jar file to a location you’ll remember.