<http://schema.org/articleBody>
"&amp;lt;h3&amp;gt;NAME&amp;lt;/h3&amp;gt;&amp;lt;p&amp;gt;lwp-request, GET, HEAD, POST - Simple WWW user agent\u00A0\u00A0&amp;lt;/p&amp;gt;&amp;lt;h3&amp;gt;SYNOPSIS&amp;lt;/h3&amp;gt;&amp;lt;pre&amp;gt;\n lwp-request [-aeEdvhx] [-m method] [-b &amp;amp;lt;base URL&amp;amp;gt;] [-t &amp;amp;lt;timeout&amp;amp;gt;]\n [-i &amp;amp;lt;if-modified-since&amp;amp;gt;] [-c &amp;amp;lt;content-type&amp;amp;gt;] [-C &amp;amp;lt;credentials&amp;amp;gt;]\n [-p &amp;amp;lt;proxy-url&amp;amp;gt;] [-o &amp;amp;lt;format&amp;amp;gt;] &amp;amp;lt;url&amp;amp;gt;...\n\n&amp;lt;/pre&amp;gt;&amp;lt;p&amp;gt;\u00A0&amp;lt;/p&amp;gt;&amp;lt;h3&amp;gt;DESCRIPTION&amp;lt;/h3&amp;gt;&amp;lt;p&amp;gt;&amp;lt;a href=&amp;quot;https://www.lifewire.com/uses-of-command-wget-2201085&amp;quot; data-component=&amp;quot;link&amp;quot; data-source=&amp;quot;inlineLink&amp;quot; data-type=&amp;quot;internalLink&amp;quot; data-ordinal=&amp;quot;1&amp;quot;&amp;gt;This program&amp;lt;/a&amp;gt; can be used to send requests to\u00A0WWW\u00A0servers and your local file system. The request content for\u00A0POST\u00A0and\u00A0PUT\u00A0methods 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.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;The options are:&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;-m &amp;amp;lt;method&amp;amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;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.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;-f&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Force request through, even if the program believes that the method is illegal. The server might reject the request eventually.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;-b &amp;amp;lt;uri&amp;amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;This\u00A0URI\u00A0will be used as the base\u00A0URI\u00A0for resolving all relative URIs given as argument.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;-t &amp;amp;lt;timeout&amp;amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;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 &amp;amp;#96;&amp;amp;#96;m&amp;amp;#39;&amp;amp;#39; or &amp;amp;#96;&amp;amp;#96;h&amp;amp;#39;&amp;amp;#39; to the timeout value to make it minutes or hours, respectively. The default timeout is &amp;amp;#39;3m&amp;amp;#39;, i.e. 3 minutes.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;-i &amp;amp;lt;time&amp;amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Set the If-Modified-Since header in the request. If\u00A0&amp;lt;em&amp;gt;time&amp;lt;/em&amp;gt;\u00A0it the name of a file, use the modification timestamp for this file. If\u00A0&amp;lt;em&amp;gt;time&amp;lt;/em&amp;gt;\u00A0is not a file, it is parsed as a literal date. Take a look at HTTP::Date for recogniced formats.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;-c &amp;amp;lt;content-type&amp;amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Set the Content-Type for the request. This option is only allowed for requests that take a content, i.e.\u00A0POST\u00A0and\u00A0PUT. You can force methods to take content by using the\u00A0&amp;amp;#34;-f&amp;amp;#34;\u00A0option together with\u00A0&amp;amp;#34;-c&amp;amp;#34;. The default Content-Type for\u00A0POST\u00A0is\u00A0&amp;amp;#34;application/x-www-form-urlencoded&amp;amp;#34;. The default Content-type for the others is\u00A0&amp;amp;#34;text/plain&amp;amp;#34;.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;-p &amp;amp;lt;proxy-url&amp;amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Set the proxy to be used for the requests. The program also loads proxy settings from the environment. You can disable this with the\u00A0&amp;amp;#34;-P&amp;amp;#34;\u00A0option.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;-H &amp;amp;lt;header&amp;amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Send this\u00A0&amp;lt;a href=&amp;quot;https://www.lifewire.com/what-do-http-and-https-stand-for-3482375&amp;quot; data-component=&amp;quot;link&amp;quot; data-source=&amp;quot;inlineLink&amp;quot; data-type=&amp;quot;internalLink&amp;quot; data-ordinal=&amp;quot;2&amp;quot;&amp;gt;HTTP&amp;lt;/a&amp;gt;\u00A0header with each request. You can specify several, e.g.:&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;\u00A0&amp;lt;/p&amp;gt;&amp;lt;pre&amp;gt;\n lwp-request \\\n -H &amp;amp;#39;Referer: http://other.url/&amp;amp;#39; \\\n -H &amp;amp;#39;Host: somehost&amp;amp;#39; \\\n http://this.url/\n\n&amp;lt;/pre&amp;gt;&amp;lt;p&amp;gt;-C &amp;amp;lt;username&amp;amp;gt;:&amp;amp;lt;password&amp;amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Provide credentials for documents that are protected by Basic Authentication. If the document is protected and you did not specify the username and password with this option, then you will be prompted to provide these values.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;The following options controls what is displayed by the program:&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;-u&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Print request method and absolute\u00A0URL\u00A0as requests are made.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;-U&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Print request headers in addition to request method and absolute\u00A0URL.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;-s&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Print response status code. This option is always on for\u00A0HEAD\u00A0requests.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;-S&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Print response status chain. This shows redirect and autorization requests that are handled by the library.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;-e&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Print response headers. This option is always on for\u00A0HEAD\u00A0requests.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;-d&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Do\u00A0&amp;lt;strong&amp;gt;not&amp;lt;/strong&amp;gt;\u00A0print the content of the response.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;-o &amp;amp;lt;format&amp;amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Process\u00A0HTML\u00A0content in various ways before printing it. If the content type of the response is not\u00A0HTML, then this option has no effect. The legal format values are;\u00A0&amp;lt;em&amp;gt;text&amp;lt;/em&amp;gt;,\u00A0&amp;lt;em&amp;gt;ps&amp;lt;/em&amp;gt;,\u00A0&amp;lt;em&amp;gt;links&amp;lt;/em&amp;gt;,\u00A0&amp;lt;em&amp;gt;html&amp;lt;/em&amp;gt;and\u00A0&amp;lt;em&amp;gt;dump&amp;lt;/em&amp;gt;.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;If you specify the\u00A0&amp;lt;em&amp;gt;text&amp;lt;/em&amp;gt;\u00A0format then the\u00A0HTML\u00A0will be formatted as plain latin1 text. If you specify the\u00A0&amp;lt;em&amp;gt;ps&amp;lt;/em&amp;gt;\u00A0format then it will be formatted as Postscript.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;The\u00A0&amp;lt;em&amp;gt;links&amp;lt;/em&amp;gt;\u00A0format will output all links found in the\u00A0HTML\u00A0document. Relative links will be expanded to absolute ones.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;The\u00A0&amp;lt;em&amp;gt;html&amp;lt;/em&amp;gt;\u00A0format will reformat the\u00A0HTML\u00A0code and the\u00A0&amp;lt;em&amp;gt;dump&amp;lt;/em&amp;gt;\u00A0format will just dump the\u00A0HTMLsyntax tree.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;-v&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Print the version number of the program and quit.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;-h&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Print usage message and quit.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;-x&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Extra debugging output.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;-a&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Set text(ascii) mode for content input and output. If this option is not used, content input and output is done in binary mode.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Because this program is implemented using the\u00A0LWP\u00A0library, it will only support the protocols that LWP\u00A0supports.\u00A0\u00A0&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Important:&amp;lt;/strong&amp;gt;\u00A0Use the\u00A0&amp;lt;em&amp;gt;man&amp;lt;/em&amp;gt;\u00A0command (&amp;lt;em&amp;gt;% man&amp;lt;/em&amp;gt;) to see how a command is used on your particular computer.&amp;lt;/p&amp;gt;"^^<http://www.w3.org/2001/XMLSchema#string>
<https://www.lifewire.com/get-linux-command-4093526>