Help for this page

Select Code to Download


  1. or download this
        die unless $response->is_success;
    
  2. or download this
        die ("Could not fetch the web page because: "
          . $response->status_line) unless $response->is_success;
        die ("Content type not text/xml.  It was" .
             $response->content_type)
          unless ($response->content_type eq 'text/xml');
    
  3. or download this
    use strict;
    use warnings;