How To Install Lwp-request In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian?

How To Install Lwp-request In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian?

lwp-request

Simple command-line HTTP client.
Built with libwww-perl.

Maintainer: Debian Perl Group



Section: perl

Install lwp-request

  • Debian apt-get install libwww-perl Click to copy
  • Ubuntu apt-get install libwww-perl Click to copy
  • Alpine OS apk add perl-libwww Click to copy
  • Arch Linux pacman -S perl-libwww Click to copy
  • Kali Linux apt-get install libwww-perl Click to copy
  • CentOS yum install perl-libwww-perl Click to copy
  • Fedora dnf install perl-libwww-perl Click to copy
  • Raspbian apt-get install libwww-perl Click 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 copy
Upload a file with a POST request:
cat /path/to/file | lwp-request -m POST http://example.com/some/pathClick to copy
Make a request with a custom user agent:
lwp-request -H 'User-Agent: user_agent -m METHOD http://example.com/some/pathClick to copy
Make a request with HTTP authentication:
lwp-request -C username:password -m METHOD http://example.com/some/pathClick to copy
Make a request and print request headers:
lwp-request -U -m METHOD http://example.com/some/pathClick to copy
Make 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.