Examples (6)
Make a simple GET request
lwp-request -m GET http://example.com/some/pathUpload a file with a POST request
lwp-request < path/to/file -m POST http://example.com/some/pathMake a request with a custom user agent
lwp-request -H 'User-Agent: user_agent -m METHOD http://example.com/some/pathMake a request with HTTP authentication
lwp-request -C username:password -m METHOD http://example.com/some/pathMake a request and print request headers
lwp-request -U -m METHOD http://example.com/some/pathMake a request and print response headers and status chain
lwp-request -E -m METHOD http://example.com/some/pathmade by @shridhargupta | data from tldr-pages