You get back gzip compressed content because ...

  1. The server is able to compress the requested content on-the-fly (typically, because gzip_cnc or mod_gzip are installed), and
  2. your user-agent said that it could handle gzip-compressed content ("Accept-Encoding" header)

or

  1. The server is able to compress the requested content on-the-fly, and
  2. the server does not care about the capabilities of the user-agent

In the first case, make sure that the announced and the real capabilities of your user-agent match, i.e. don't send "Accept-Encoding: gzip" if you can't or don't want to handle gzip-compressed content.

In the latter case, the server is misconfigured, either accidentally or intentionally. All currently and commonly used browsers can handle gzip compressed content, so not checking the capabilities at all save a few thousand CPU cycles and some lines of code. Of course, this is not what I would call a well-behaved server.

See also http://schroepl.net/projekte/mod_gzip/encoding.htm

Your eval "surprise" was already explained: eval traps die, nothing less, nothing more. It does not help you with code that exits or messes up perl's internal structures.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

In reply to Re^3: XML::FeedPP Crashing Despite Eval by afoken
in thread XML::FeedPP Crashing Despite Eval by cormanaz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.