Help for this page

Select Code to Download


  1. or download this
    $>perl -MLWP::Debug=+ -MLWP::Simple -we"print
     get('http://wire.ap.org/APnews/center_minor.html?FRONTID=SCIENCE')"
    ...
    LWP::UserAgent::request: ()
    LWP::UserAgent::request: Simple response: Bad Request
    Use of uninitialized value in print at -e line 1.
    
  2. or download this
    $>perl -MLWP::Debug=+ -MLWP::Simple -we"print
     getstore('http://wire.ap.org/APnews/center_minor.html?FRONTID=SCIENCE
    +','file.tx
    ...
    LWP::Protocol::collect: read 478 bytes
    LWP::UserAgent::request: Simple response: OK
    200
    
  3. or download this
        LWP::Debug::debug('Simple response: ' .
                  (HTTP::Status::status_message($code) ||
                   "Unknown code $code"));
    
  4. or download this
    =item $ua->request($request, $arg [, $size])
    
    Process a request, including redirects and security.  This method may
    ...
        return $response;
    }