Skip to content

Latest commit

 

History

History
22 lines (11 loc) · 705 Bytes

README.md

File metadata and controls

22 lines (11 loc) · 705 Bytes

HttpClient Command Line Tool

You want cURL, but don't have it. You're on a Linux/Solaris machine, but can't install packages. There is no compiler installed. What ca you do? With the command line tool for Apache HttpClient you can do some basic commands like cURL.

Bulding

You need maven to build this project. Run the following command to generate a JAR with all dependencies:

mvn clean install

Usage

Currently only HTTP GET requests are impleneted. There are options:

  • -I --header will only show the response headers
  • -L --location will handle redirects

Sample usage:

java -jar httpclient-cmd-1.0-SNAPSHOT-jar-with-dependencies.jar -I http://www.google.com