in reply to Problems with dynamic images
perldoc CGI shows that you have to print the header,
What you probably want is from CGI::Application$ perl -MCGI -le"print CGI->header(qw! -type image/jpeg -nph 1!) HTTP/1.0 200 OK Server: cmdline Date: Sun, 08 Mar 2009 08:14:05 GMT Content-Type: image/jpeg
# add or replace the 'type' header $webapp->header_add( -type => 'image/jpeg', -attachment => 'foo.jp +g' );
I had found an article with some examples using a redirect to append a "/image.extension" onto the URL, but that might be old and probably doesn't work anymore (and seems like it was kind of a hack anyway)
It was probably a hack for browsers which ignored attachment headers.
See also overkill anti-caching CGI headers
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problems with dynamic images
by ibmman (Novice) on Mar 08, 2009 at 23:04 UTC |