GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  URI::FETCH::RESPONSE (3)

.ds Aq ’

NAME

URI::Fetch::Response - Feed response for URI::Fetch

CONTENTS

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

CW$res->content

The contents of the feed.

CW$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.

CW$res->etag

The ETag that was returned in the response, if any.

CW$res->last_modified

The Last-Modified date (in seconds since the epoch) that was returned in the response, if any.

CW$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()

CW$res->http_status

The HTTP status code from the response.

CW$res->http_response

The HTTP::Response object returned from the fetch.

CW$res->is_success

CW$res->is_redirect

CW$res->is_error

Wrappers around the $res->response methods of the same name, for convenience.

<B>Note:B> there is one difference from the behaviour of HTTP::Response. If you are using a cache and get a 304 response, but the data is retrieved from the cache, then is_success will return true, because res->content is usable.

CW$res->content_type

The Content-Type header from the response.

AUTHOR & COPYRIGHT

Please see the URI::Fetch manpage for author, copyright, and license information.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 URI::FETCH::RESPONSE (3) 2015-07-04

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.