LWP-REQUEST(1p) User Contributed Perl Documentation LWP-REQUEST(1p)
NAME
lwp-request - Simple command line user agent
SYNOPSIS
lwp-request [-afPuUsSedvhx] [-m method] [-b base URL] [-t timeout]
[-i if-modified-since] [-c content-type]
[-C credentials] [-p proxy-url] [-o format] url...
DESCRIPTION
This program can be used to send requests to WWW servers and your local file system. The request
content for POST, PUT and PATCH methods is read from stdin. The content of the response is printed
on stdout. Error messages are printed on stderr. The program returns a status value indicating the
number of URLs that failed.
The options are:
-m
Set which method to use for the request. If this option is not used, then the method is derived
from the name of the program.
-f Force request through, even if the program believes that the method is illegal. The server might
reject the request eventually.
-b
This URI will be used as the base URI for resolving all relative URIs given as argument.
-t
Set the timeout value for the requests. The timeout is the amount of time that the program will
wait for a response from the remote server before it fails. The default unit for the timeout
value is seconds. You might append "m" or "h" to the timeout value to make it minutes or hours,
respectively. The default timeout is '3m', i.e. 3 minutes.
-i