29 Mar 2007 07:34:08 UTC
- Distribution: IO-All-LWP
- Module version: 0.14
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (3)
- Testers (2425 / 1 / 20)
- KwaliteeBus factor: 2
- 40.86% Coverage
- License: perl_5
- Perl: v5.8.0
- Activity24 month
- Download (14.19KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
IO::All::LWP - Extends IO::All to HTTP URLs
use IO::All; $content < io('http://example.org'); # GET webpage into scalar io('http://example.org') > io('index.html'); # GET to file "hello\n" > io('http://example.org/index.html'); # PUT webpage # two ways of getting a page with a password: $content < io('http://me:email@example.com'); $content < io('http://example.org')->user('me')->password('secret');
The SYNOPSIS shows some simple typical examples, but there are many other interesting combinations with other IO::All features! For example, you can get an HTTP URL and write the content to a socket, or to an FTP URL, of to a DBM file.
This is a subclass of IO::All::LWP. The only new method is
http, which can be used to create a blank IO::All::HTTP object; or it can also take an HTTP URL as a parameter. Note that in most cases it is simpler just to call io('http://example.com'), which calls the
The same operators from IO::All may be used. < GETs an HTTP URL; > PUTs to an HTTP URL.
Ivan Tubert-Brohman <firstname.lastname@example.org> and Brian Ingerson <email@example.com>
Copyright (c) 2007. Ivan Tubert-Brohman and Brian Ingerson. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.