Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

PoCo::Client::HTTP content decoding issue, and proposed deprecation
POE::Component::Client::HTTP quietly decodes HTTP::Response content
before passing the object back to application code.  It does so for
the convenience of application programmers who just want to deal with
HTML.

This is not always the right thing to do.  For example, downloaded .gz
files will be saved to disk uncompressed because the content is
silently uncompressed.

Gisle Aas explains why transparent decoding in library space can be
bad: http://www.mail-archive.com/libwww@...g/msg04703.html (among
other places).

So I'm thinking about removing it, and forcing the application
programmer to use decoded_content() explicitly if they need it.

This would break programs that rely on the transparent decoding, so
I'm considering doing it in stages:

1a. Only decode content for text/* that is gzip encoded.  All other
content would be passed through unchanged.

1b. Add a new option to do transparent decoding, and leave it on by
default.

2. Later, throw a warning if the option is turned on.  Remind the
application developer to use decoded_content() if they want decoded
content.

3. Later, throw a hard error (and reminder) at the developer if the
option is enabled.

4. Later, remove the transparent decoding feature and option altogether.

--
Rocco Caputo - rcaputo@pobox.com



Report this thread to moderator Post Follow-up to this message
Old Post
Rocco Caputo
05-05-08 10:32 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL POE archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 11:51 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.