WWW::Curl::Simple - A Simpler interface to WWW::Curl
version 0.100181
It makes it easier to use WWW::Curl::(Easy|Multi), or so I hope
use WWW::Curl::Simple; my $curl = WWW::Curl::Simple->new(); my $res = $curl->get('http://www.google.com/');
Sets the timeout of individual requests, in seconds or milliseconds
Sets the timeout of the connect phase of requests, in seconds or milliseconds
Defaults to true, but if set to false, it will make failure in multi-requests warn instead of die.
$req should be a HTTP::Request object.
If you have a URI-string or object, look at the get-method instead. Returns a HTTP::Response object.
Accepts one parameter, which should be a reference to a URI object or a string representing a uri. Returns a HTTP::Response object.
Created a HTTP::Request of type POST to $uri, which can be a string or a URI object, and sets the form of the request to $form. See HTTP::Request for more information on the format of $form
Adds $req (HTTP::Request) to the list of URL's to fetch. Returns a WWW::Simple::Curl::Request
This is just an alias for add_request
Will return true if $request is one of our requests
Will remove $req from our list of requests
Does all the requests added with add_request, and returns a list of HTTP::Response-objects
These methods are here to provide an easier transition from LWP::Parallel::UserAgent. It is by no means a drop in replacement, but using wait instead of perform makes the return-value perform more alike
wait
perform
Andreas Marienborg <andremar@cpan.org>
This software is copyright (c) 2010 by Andreas Marienborg.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WWW::Curl::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Curl::Simple
CPAN shell
perl -MCPAN -e shell install WWW::Curl::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.