Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Downloading images to client PCs

by valdez (Monsignor)
on Sep 12, 2002 at 15:55 UTC ( #197256=note: print w/replies, xml ) Need Help??


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:

  • Netscape 4.78: shows the image as background; if I try to save the page I get the correct name for the image;
  • Netscape 7: pops up a window to save or preview the image
  • Lynx 2.8.4: saves the image with the correct name
  • Konqueror 2.2.2: does nothing :(

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://197256]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2021-10-21 12:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (83 votes). Check out past polls.

    Notices?