httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Harrison>
Subject Re: giving a filename hint to the browser?
Date Mon, 20 Aug 2007 00:17:19 GMT
Ray Morris wrote:
> Google Content-Disposition.  This is techincally a
> MAIL header, not an HTTP header, I think, but the
> major browsers seem to pay some attention to it,
> at least some times.

Ah, that's perfect.  Firefox honors it on "Save As...",
and Safari honors it on both "Save As..." and when dragging
the image to another app or the Finder.

Thanks a bunch!

For future googles:

     snprintf(disposition, sizeof(disposition), "inline; filename=%s", hint);
     apr_table_add(r->headers_out, "Content-disposition", disposition);

View raw message