DESCRIPTION

This module provides a simplified mechanism for making requests to an \s-1OAI\s0 repository, using the existing LWP::UserAgent module.

SYNOPSIS

        require HTTP::OAI::UserAgent;

        my $ua = new HTTP::OAI::UserAgent;

        my $response = $ua->request(
                baseURL=>'http://arXiv.org/oai1',
                verb=>'ListRecords',
                from=>'2001-08-01',
                until=>'2001-08-31'
        );

        print $response->content;

METHODS

This constructor method returns a new instance of a HTTP::OAI::UserAgent module. All arguments are passed to the LWP::UserAgent constructor. Requests the \s-1HTTP\s0 response defined by $req, which is a HTTP::Request object. Makes an \s-1HTTP\s0 request to the given \s-1OAI\s0 server (baseURL) with \s-1OAI\s0 arguments. Returns an HTTP::Response object. OAI-PMH related options: from => $from until => $until resumptionToken => $token metadataPrefix => $mdp set => $set Takes the same arguments as request, but returns the \s-1URL\s0 that would be requested. Return and optionally set a time (in seconds) to wait between requests. $time_d may be a \s-1CODEREF\s0.