HTTP::OAI::Response(3pm) User Contributed Perl Documentation HTTP::OAI::Response(3pm)NAME
HTTP::OAI::Response - An OAI response
DESCRIPTION
"HTTP::OAI::Response" inherits from HTTP::Response and supplies some utility methods for OAI.
METHODS
$r = new HTTP::OAI::Response([responseDate=>$rd][, requestURL=>$ru])
This constructor method returns a new HTTP::OAI::Response object. Optionally set the responseDate and requestURL.
Use $r->is_error to test whether the request was successful. In addition to the HTTP response codes, the following codes may be
returned:
600 - Error parsing XML or invalid OAI response
Use $r->message to obtain a human-readable error message.
$r->copy_from( $r )
Copies an HTTP::Response $r into this object.
$headers = $r->headers
Returns an HTTP::OAI::Headers object.
$errs = $r->errors([$err])
Returns and optionally adds to the OAI error list. Returns a reference to an array.
$rd = $r->responseDate( [$rd] )
Returns and optionally sets the response date.
$ru = $r->requestURL( [$ru] )
Returns and optionally sets the request URL.
$verb = $r->verb( [$verb] )
Returns and optionally sets the OAI verb.
$r->version
Return the version of the OAI protocol used by the remote site (protocolVersion is automatically changed by the underlying API).
$r->xslt( $url )
Set the stylesheet to use in a response.
NOTE - requestURI/request
Version 2.0 of OAI uses a "request" element to contain the client's request, rather than a URI. The OAI-PERL library automatically converts
from a URI into the appropriate request structure, and back again when harvesting.
The exception to this rule is for badVerb errors, where the arguments will not be available for conversion into a URI.
perl v5.12.4 2011-06-23 HTTP::OAI::Response(3pm)
Check Out this Related Man Page
URI::Fetch::Response(3pm) User Contributed Perl Documentation URI::Fetch::Response(3pm)NAME
URI::Fetch::Response - Feed response for URI::Fetch
SYNOPSIS
use URI::Fetch;
my $res = URI::Fetch->fetch('http://example.com/atom.xml')
or die URI::Fetch->errstr;
print $res->content;
DESCRIPTION
URI::Fetch::Response encapsulates the response from fetching a feed using URI::Fetch.
USAGE
$res->content
The contents of the feed.
$res->uri
The URI of the feed. If the feed was moved, this reflects the new URI; otherwise, it will match the URI that you passed to fetch.
$res->etag
The ETag that was returned in the response, if any.
$res->last_modified
The Last-Modified date (in seconds since the epoch) that was returned in the response, if any.
$res->status
The status of the response, which will match one of the following enumerations:
o URI::Fetch::URI_OK()
o URI::Fetch::URI_MOVED_PERMANENTLY()
o URI::Fetch::URI_GONE()
o URI::Fetch::URI_NOT_MODIFIED()
$res->http_status
The HTTP status code from the response.
$res->http_response
The HTTP::Response object returned from the fetch.
$res->is_success
$res->is_redirect
$res->is_error
Wrappers around the "$res->response" methods of the same name, for convenience.
$res->content_type
The Content-Type header from the response.
AUTHOR & COPYRIGHT
Please see the URI::Fetch manpage for author, copyright, and license information.
perl v5.12.4 2011-08-29 URI::Fetch::Response(3pm)
I have a PERL script from which I need to make a HTTP request to Web Servlet (Essentially a URL with variables and values like &Variable1=AAAAAA&Variable2=BBBBBBBBB&Variable3=CCCCCCC). The Web servlet returns an XML result which needs to be parsed for the contents of the result within the program.... (15 Replies)
Hi,
Under my parent diectory I have directory named "Response" in many of its subfolders. I am interested to see all files with extention .pro in Response Directory. I am giving following command -
find . -name "Response" -type d | xargs -i ls -lrt {}/*.pro
but it is not giving result.
... (3 Replies)
Hi,
We are accessing our remote webserver using libcurl.We are using GET method to post the request.The request is a simplified URL.We will receive XML Response for the URL request.
Problem
For Few Scenarios, response for the URL request is received & our component is killed abruptly. Can... (11 Replies)
Hypertext Transfer Protocol -- HTTP/1.1 for Reference - HTTP Headers
10 Status Code Definitions
Each Status-Code is described below, including a description of which method(s) it can follow and any metainformation required in the response. (1 Reply)
Dear community, I'm going crazy to convert TCP response to HEX using perl. I have a simple connection request where I send data, something like:
use strict;
use IO::Socket;
my $sock;
$sock = new IO::Socket::INET(
PeerAddr => '192.168.10.7',
PeerPort =>... (1 Reply)