in reply to Perl Web Server no picture

Maybe you're on an architecture that requires that you binmode your output handles, so that return/linefeed line endings don't get mangled for binary data.

Just a guess, since I don't see enough in your question to be able to help you otherwise.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: Perl Web Server no picture
by mvc (Scribe) on Jul 13, 2004 at 21:24 UTC

    I think he means: if you show us code, we will show you on which filehandle you need to call binmode.

    Most likely it is the filehandle for the file you are opening for reading. The file you want to serve to the world.

    Actually, such a bug has just been fixed in POE::Component::Server::HTTPServer. Check out diff at this link. Is CPAN amazing or what?