Hi Pete,

I'll keep that in mind. Gotta love IE...

Mark


On Aug 23, 2004, at 6:58 AM, Pete Prodoehl wrote:

william ross wrote:
On 21 Aug 2004, at 20:07, Chris Devers wrote:
On Sat, 21 Aug 2004, Mark Wheeler wrote:

This is untested, but I'm guessing that you could write a simple CGI script that takes the URL for an image as an argument -- maybe just using $ENV{'HTTP_QUERY_STRING'} so that the url can be simple like --

    http://site/images/fetch.pl?path/to/image/file.jpg



This can probably be done with about half a dozen lines of code, and if the browser is well behaved -- that'll be the part that's a pain to verify -- the alternate content type should force the right behavior.

Since the phrase "if the browser is well behaved" is in there, I should mention experience I've had with Internet Explorer. In trying to serve up text files to IE with application/octet-stream, IE was ignoring the mime-type and using the file extension instead, so that:


  http://site/images/fetch.pl?path/to/file.txt

was being displayed in the browser. A quick fix was this:

  http://site/images/fetch.pl?path/to/file.txt&iesux

to prevent IE from seeing ".txt" at the end of the url...

Pete





Reply via email to