in reply to Downloading images to client PCs

I tried your code (the first 'inline' version) on my linux box and here is what i got:

I don't know if it makes a difference, but every header should be followed by \r\n.

Ciao, Valerio

Replies are listed 'Best First'.
Re: Re: Downloading images to client PCs
by tlhf (Scribe) on Sep 13, 2002 at 01:12 UTC
    I don't know if it makes a difference, but every header should be followed by \r\n.

    Not in Perl it shouldn't. \n and \r map to different values depending on platform. What you should have said was that "every header should be followed by \015\012". This is all documented in perldoc perlport.

    tlhf