HTTP::Response and gzip

Discussion in 'Perl Misc' started by adiakin@gmail.com, Jul 25, 2006.

  1. Guest

    Hello, I have a trouble with using HTTP::Response with decoding gzipped
    data
    lwp-request -H "Accept-Encoding: gzip, deflate" -SUed host.com return
    Content-Encoding: gzip,
    but when I write
    $ua->agent("Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)");
    $ua->default_header("Accept-Encoding" => "gzip, deflate");
    my $response = $ua->get($baseUrl . $aid);
    print $response->decoded_content;
    I get that $response->decoded_content not defined at all
    $response->content_encoding returns gzip
    LWP version 5.803
    Can anybody help me?
    , Jul 25, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bill Loren

    gzip HTTP results problem

    Bill Loren, Jul 29, 2003, in forum: Python
    Replies:
    0
    Views:
    293
    Bill Loren
    Jul 29, 2003
  2. Fredrik Lundh

    Re: gzip HTTP results problem

    Fredrik Lundh, Jul 29, 2003, in forum: Python
    Replies:
    1
    Views:
    314
    John J. Lee
    Jul 29, 2003
  3. Leif Wessman
    Replies:
    16
    Views:
    976
    Leif Wessman
    Dec 8, 2004
  4. Mark Smith

    How to uncompress HTTP GZIP data

    Mark Smith, Dec 19, 2005, in forum: Perl Misc
    Replies:
    6
    Views:
    250
    Paul Marquess
    Dec 20, 2005
  5. James Marshall
    Replies:
    2
    Views:
    219
    James Marshall
    Aug 7, 2006
Loading...

Share This Page