#!perl -w # $Id: lwp-request.PL,v 1.33 1998/08/04 09:18:11 aas Exp $ # # Simple user agent using LWP library. =head1 NAME lwp-request, GET, HEAD, POST - Simple WWW user agent =head1 SYNOPSIS lwp-request [-aeEdvhx] [-m method] [-b ] [-t ] [-i ] [-c ] [-C ] [-p ] [-o ] ... =head1 DESCRIPTION This program can be used to send requests to WWW servers and your local file system. The request content for POST, PUT and CHECKIN 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: =over 4 =item -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. =item -f Force request through, even if the program believes that the method is illegal. The server will probably reject the request. =item -b This URL will be used as the base URL for the URLs that the method is applied to. The base URL only takes effect for relative URLs. If you do not provide this option and the URLs are relative, then they will be treated as files in the local file system. =item -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. =item -i