in reply to How to display the response from a get request to a browser?
Same thing happens when you print() your imag: it doesn't just magically transform into a nice picture - you see the image data, which can be any kind of image format. Try printing it to a file, and then running an external image viewer; the display command from image-magick might be useful.
Also, your HTTP code is broken for a lot of possible responses. I would strongly recommend you use LWP::UserAgent instead.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to display the response from a get request to a browser?
by unb (Initiate) on Oct 27, 2004 at 15:52 UTC | |
by Joost (Canon) on Oct 27, 2004 at 15:56 UTC | |
by unb (Initiate) on Oct 27, 2004 at 17:57 UTC |