lwp-request

Simple command-line HTTP client. Built with libwww-perl. More information: https://metacpan.org/pod/lwp-request.

lwp-request -m GET http://example.com/some/path

lwp-request -m POST http://example.com/some/path < path/to/file

lwp-request -H 'User-Agent: user_agent -m METHOD http://example.com/some/path

lwp-request -C username:password -m METHOD http://example.com/some/path

lwp-request -U -m METHOD http://example.com/some/path

lwp-request -E -m METHOD http://example.com/some/path