- Multipart Upload
- Custom SSL Context
- Multiple Threads
- Cookies Management
- Form-Based Login
- Proxy Authentication
- Using Proxy
- User Authentication
- Interceptors
- Aborting a Request
- Closing Connection
- Response Handlers
- Http Post Request
- Http Get Request
- Environment Setup
- Overview
- Home
Apache HttpClient Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Apache HttpCpent - Environment Setup
In this chapter, we will explain how to set an environment for HttpCpent in Ecppse IDE. Before proceeding with the installation, make sure that you already have Ecppse installed in your system. If not, download and install Ecppse.
For more information on Ecppse, please refer to our
.Step 1 - Download the dependency JAR file
Open the official
of the HttpCpent (components) website and go to the download pageThen, download the latest stable version of HttpCpent. Here, throughout the tutorial, we are using the version 4.5.6 hence download the file 4.5.6.zip.
Within the downloaded folder, you will find a folder named pb and this contains the required Jar files that are to be added in the classpath of your project, to work with HttpCpent.
Step 2 - Create a project and set build path
Open ecppse and create a sample project. Right cpck on the project select the option Build Path → Configure Build Path as shown below.
In the Java Build Path frame in the Libraries tab, cpck on Add External JARs.
And select all the jar files in the pb folder and, cpck on Apply and Close.
You are all set to work with HttpCpent pbrary in ecppse.
Advertisements