From: Rasputin Date: 2003-07-18T19:58:03+09:00 Subject: Re: Question re: graphics output of CGIs (mime-type issue?) * Brian Candler [0745 11:45]: > On Fri, Jul 18, 2003 at 07:28:42PM +0900, Rasputin wrote: > > > I tried just using a Content-type of image/jpeg, > > > but I got garbage in the browser. > > > > Don't some browsers insist on looking at filetype > > rather than mime-type? > > What do you mean by "filetype"? Do you mean "extension"? It shouldn't make > any different. If the server sends back > > Content-type: image/jpeg > > then where is the filename to be found in the response? The browser could > look at the source URL (/foo/bar/baz.cgi) but that doesn't tell it anything > about the type of the response. I'm talking about the extension. And some versions of IE. So laws of logic don't apply :) > ScriptAlias "/edit-img" "/usr/local/apache/cgi-bin/image.cgi" > > ought to do the trick. Doh! Cheers, will try that. -- A successful [software] tool is one that was used to do something undreamed of by its author. -- S. C. Johnson Rasputin :: Jack of All Trades - Master of Nuns