Help for this page

Select Code to Download


  1. or download this
           Or you can process the document as it arrives (second
           $ua->request() argument is a code reference):
    ...
                              # print $chunk;
                          });
              print $res->status_line, "\n";
    
  2. or download this
           The subroutine variant requires a reference to callback 
           routine as the second argument to the request method and 
    ...
           The request can be aborted by calling die() in the call- 
           back routine.  The die message will be available as the 
           "X-Died" special response header field.