SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE


YUM REPOSITORY

 
 

MAN page from Fedora 28 perl-WWW-Mechanize-GZip-0.12-24.fc28.noarch.rpm

WWW::Mechanize::GZip

Section: User Contributed Perl Documentation (3)
Updated: 2009-06-24
Index 

NAME

WWW::Mechanize::GZip - tries to fetch webpages with gzip-compression 

VERSION

Version 0.10 

SYNOPSIS

    use WWW::Mechanize::GZip;    my $mech = WWW::Mechanize::GZip->new();    my $response = $mech->get( $url );    print "x-content-length (before unzip) = ", $response->header('x-content-length');    print "content-length (after unzip) = ", $response->header('content-length');
 

DESCRIPTION

The WWW::Mechanize::GZip module tries to fetch a URL by requestinggzip-compression from the webserver.

If the response contains a header with 'Content-Encoding: gzip', itdecompresses the response in order to get the original (uncompressed) content.

This module will help to reduce bandwith fetching webpages, if supported by thewebeserver. If the webserver does not support gzip-compression, no decompressionwill be made.

This modules is a direct subclass of WWW::Mechanize and will therefore supportany methods provided by WWW::Mechanize.

The decompression is handled by Compress::Zlib::memGunzip.

There is a small webform, you can instantly test, whether a webserver supportsgzip-compression on a particular URL:<http://www.computerhandlung.de/www-mechanize-gzip.htm> 

METHODS

prepare_request
Adds 'Accept-Encoding' => 'gzip' to outgoing HTTP-headers before sending.
send_request
Unzips response-body if 'content-encoding' is 'gzip' andcorrects 'content-length' to unzipped content-length.
 

SEE ALSO

WWW::Mechanize

Compress::Zlib 

AUTHOR

Peter Giessner "cardbAATTplanet-elektronik.de" 

LICENCE AND COPYRIGHT

Copyright (c) 2007, Peter Giessner "cardbAATTplanet-elektronik.de".All rights reserved.

This module is free software; you can redistribute it and/ormodify it under the same terms as Perl itself.


 

Index

NAME
VERSION
SYNOPSIS
DESCRIPTION
METHODS
SEE ALSO
AUTHOR
LICENCE AND COPYRIGHT

This document was created byman2html,using the manual pages.