WWW::C...:Simple(3pm)
โจ WWW::C...:Simple(3pm) โจ
okay bestie, welcome to the perl manual for WWW::Curl::Simple โ it lives in the User Contributed Perl Documentation section of the manual pages, and yes the title up top got cropped to WWW::C...:Simple(3pm) because man pages are dramatic like that ๐
๐ NAME ๐
WWW::Curl::Simple โ literally just a Simpler interface to WWW::Curl. that's the whole vibe ๐ธ
๐ VERSION ๐
version 0.100191 โ slay, we're on this one โจ
๐ฆ SYNOPSIS ๐ฆ
baby's first curl request, look how easy:
my $curl = WWW::Curl::Simple->new();
my $res = $curl->get('http://www.google.com/');
that's it. that's the whole thing. no cap ๐ซถ
๐ ATTRIBUTES ๐
these are the knobs you can turn bestie, get comfy ๐
timeout/timeout_msโ sets the timeout of individual requests. seconds if you usetimeout, milliseconds if you usetimeout_ms. pick your unit, live your truth ๐max_redirectsโ sets the max number of redirects that should be transparently followed. set it to0if you do not want to follow redirects, periodt. Default:5.check_ssl_certsโ says whether the underlying Curl library should check SSL certificates when making https requests. Defaults to1(i.e. do check certs, to err on the safe side). honestly? safety first bestie ๐ก๏ธโจssl_cert_bundleโ specifies the bundle to look for CA certificates in. leave it blank for the system default, which should work if your libcurl is properly compiled. iykyk ๐connection_timeout/connection_timeout_msโ sets the timeout of the connect phase of requests, in seconds or milliseconds. yes this is different from the request timeout above, the connect phase is its own little era ๐งfatalโ defaults to true, but if you set it to false, it will make failure in multi-requests warn instead of die. so like, chill mode ๐
๐ METHODS ๐
๐
request($req)
$req should be a HTTP::Request object.
if you've got a URI string or object instead, look at the "get" method instead. Returns a WWW::Curl::Simple::Request object. ๐
๐ธ get($uri || URI)
accepts one parameter, which should be a reference to a URI object or a string representing a URI. Returns a HTTP::Response object. this is the one from the synopsis, iconic behavior ๐
๐ post($uri || URI, $form)
creates 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. ๐ฎ
โญ add_request($req)
adds $req (a HTTP::Request object) to the list of URLs to fetch. Returns a WWW::Curl::Simple::Request object.
๐ฆ register($req)
an alias for "add_request". same thing, diff name, we love options โจ
๐ง has_request $request
will return true if $request is one of the object's requests. vibe check โ
๐ delete_request $req
removes $req from the object's list of requests. bye bestie ๐
๐ฅ perform
does all the requests added with "add_request" and returns a list of WWW::Curl::Simple::Request objects. the main character method fr fr ๐
๐ wait
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. โ ๏ธ not a drop in replacement, hear me when i say it ๐ซถ
๐ AUTHOR ๐
Andreas Marienborg <andremar@cpan.org> โ the originator, the blueprint ๐
๐ซถ CONTRIBUTORS ๐ซถ
- Bjรธrn-Olav Strand
<bo@startsiden.no> - Graham Knop
<haarg@haarg.org> - Marcus Ramberg
<marcus@nordaaker.com> - Neil Bowers
<neil@bowers.com> - chromatic
<chromatic@wgz.org>
the whole squad showed up, we love to see it โจ
๐ COPYRIGHT AND LICENSE ๐
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. so like, go forth and remix ๐
and that's the page bestie!! ๐ธ this little number is fromperl v5.36.0, dated2022-08-29, and it's filed underWWW::C...:Simple(3pm). go write something cute with it ๐ โจ๐ฆ
๐ฆ where this page comes from
- ubuntu noble: libwww-curl-simple-perl 0.100191-3 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libwww-curl-simple-perl 0.100191-3 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libwww-curl-simple-perl 0.100191-3 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms