httpclient command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
httpclient: command not found
or when using sudo you get the following error message
sudo: httpclient: command not found
Solutions to httpclient: command not found
How To Fix httpclient: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu httpclient is provided by ruby-httpclient package.
ruby-httpclient is:
httpclient gives something like the functionality of libwww-perl (LWP) in Ruby.
Features: * methods like GET/HEAD/POST/* via HTTP/1.1. * HTTPS(SSL), Cookies, proxy, authentication(Digest, NTLM, Basic), etc. * asynchronous HTTP request, streaming HTTP request. * by contrast with net/http in standard distribution; - Cookies support - MT-safe - streaming POST (POST with File/IO) - Digest auth - Negotiate/NTLM auth for WWW-Authenticate (requires net/htlm module) - NTLM auth for WWW-Authenticate/Proxy-Authenticate (requires win32/sspi module) - extensible with filter interface - you don’t have to care HTTP/1.1 persistent connection (httpclient cares instead of you).
To fix this problem, we can install more using the command below.
sudo apt-get -y install ruby-httpclient
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ruby-httpclient.
sudo apt -y install ruby-httpclient
Or if you have aptitude installed you can use the following command.
sudo aptitude install ruby-httpclient
Summary
In this tutorial we learn how to fix httpclient command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.