Help for this page

Select Code to Download


  1. or download this
    perl -MWWW::Curl::Lite -e 'print WWW::Curl::Lite->get("http://files.oo
    +ok.de")'
    
  2. or download this
     #!/usr/bin/perl -w
    use strict;
    ...
    my $curl = new WWW::Curl::Lite;
    my $response = $curl->request($request);
    print $response->content;
    
  3. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    foreach my $response (@$responses) {
        print $response->content;
    }
    
  4. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    $curl->setopt( CURLOPT_HEADERFUNCTION, \&header_callback );
    $curl->setopt( CURLOPT_WRITEFUNCTION,  \&body_callback );
    $curl->perform;