How To Install Lwp-request In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian?
Install lwp-request
-
Debian
apt-get install libwww-perlClick to copy -
Ubuntu
apt-get install libwww-perlClick to copy -
Alpine OS
apk add perl-libwwwClick to copy -
Arch Linux
pacman -S perl-libwwwClick to copy -
Kali Linux
apt-get install libwww-perlClick to copy -
CentOS
yum install perl-libwww-perlClick to copy -
Fedora
dnf install perl-libwww-perlClick to copy -
Raspbian
apt-get install libwww-perlClick to copy
Simple command-line HTTP client. Built with libwww-perl.
How to use lwp-request?
Below are few example commands for lwp-request that you can use in the terminal.
Make a simple GET request:lwp-request -m GET http://example.com/some/pathClick to copyUpload a file with a POST request:cat /path/to/file | lwp-request -m POST http://example.com/some/pathClick to copyMake a request with a custom user agent:lwp-request -H 'User-Agent: user_agent -m METHOD http://example.com/some/pathClick to copyMake a request with HTTP authentication:lwp-request -C username:password -m METHOD http://example.com/some/pathClick to copyMake a request and print request headers:lwp-request -U -m METHOD http://example.com/some/pathClick to copyMake a request and print response headers and status chain:lwp-request -E -m METHOD http://example.com/some/pathClick to copy
Installation of latest lwp-request command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora and Raspbian. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.




