Re: CGI automatic download file
Re: CGI automatic download file
- Subject: Re: CGI automatic download file
- From: Brian Johnson <email@hidden>
- Date: Wed, 23 Jan 2008 15:46:33 -0800 (PST)
Mark Reed wrote:
So simply prepending those header lines to the returned string should
achieve the desired result, i.e., most browsers will automatically
download rather than display the file. Right?
Right. In fact, I spoke too soon about PHP giving better control. Behavior
in different servers is slightly different (or has varied over the years),
but in my own current stuff (which ultimately goes out via apache these
days) I provide a full HTTP header, so you could control content type,
redirection, etc. by modifying the text of what is returned.
-b.johnson (same place)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden