WWW::Curl::Simple - A Simpler interface to WWW::Curl
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 maximum number of redirects that should be transparently followed. Set this to 0 if you don't want to follow redirects. Default: 5.
Specifies whether the underlying Curl library should check SSL certificates when making https requests. Defaults to 1 (i.e. do check certs, to err on safe side).
Specifies the bundle to look for CA certificates in. Leave blank for system default, which should work if your libcurl is properly compiled.
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 WWW::Curl::Simple::Request object.
Accepts one parameter, which should be a reference to a URI object or a string representing a URI. Returns a HTTP::Response object.
An alias for
Will return true if
$request is one of the object's requests.
$req from the object's list of requests.
Does all the requests added with
add_request and returns a list of WWW::Curl::Simple::Request objects.
This method is 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 more like that of LWP::UA.
Andreas Marienborg <email@example.com>
This software is copyright (c) 2013 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.