Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
No Starch Press

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 200 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

lwp-request



SYNOPSIS

        lwp-request [-aeEdvhx] [-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
       and PUT 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 <method>
           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 <uri>
           This URI will be used as the base URI for resolving
           all relative URIs given as argument.

       -t <timeout>
           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 time­
           out is '3m', i.e. 3 minutes.

       -i <time>
           Set the If-Modified-Since header in the request. If
           time it the name of a file, use the modification
           timestamp for this file. If time is not a file, it is
           parsed as a literal date. Take a look at HTTP::Date
           for recogniced formats.

       -c <content-type>
           Set the Content-Type for the request.  This option is
           only allowed for requests that take a content, i.e.
           POST and PUT.  You can force methods to take content
           by using the "-f" option together with "-c".  The
           default Content-Type for POST is "applica­
           tion/x-www-form-urlencoded".  The default Content-type
           for the others is "text/plain".

       -C <username>:<password>
           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.

       The following options controls what is displayed by the
       program:

       -u  Print request method and absolute URL as requests are
           made.

       -U  Print request headers in addition to request method
           and absolute URL.

       -s  Print response status code.  This option is always on
           for HEAD requests.

       -S  Print response status chain. This shows redirect and
           autorization requests that are handled by the library.

       -e  Print response headers.  This option is always on for
           HEAD requests.

       -d  Do not print the content of the response.

       -o <format>
           Process HTML content in various ways before printing
           it.  If the content type of the response is not HTML,
           then this option has no effect.  The legal format val­
           ues are; text, ps, links, html and dump.

           If you specify the text format then the HTML will be
           formatted as plain latin1 text.  If you specify the ps
           format then it will be formatted as Postscript.

           The links format will output all links found in the
           HTML document.  Relative links will be expanded to
           absolute ones.

           The html format will reformat the HTML code and the
           dump format will just dump the HTML syntax tree.

       -v  Print the version number of the program and quit.

       -h  Print usage message and quit.

       -x  Extra debugging output.

       -a  Set text(ascii) mode for content input and output.  If


AUTHOR

       Gisle Aas <gisle@aas.no>

perl v5.8.1                 2003-09-23             LWP-REQUEST(1)
  




Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
You can choose larger fonts by selecting a different themes.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.05 Seconds