• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CGI automatic download file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >CGI automatic download file (From: "Tiago Santarosa" <email@hidden>)
 >Re: CGI automatic download file (From: "Mark J. Reed" <email@hidden>)
 >Re: CGI automatic download file (From: Brian Johnson <email@hidden>)
 >Re: CGI automatic download file (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: CGI automatic download file
  • Next by Date: Re: How to parse CSV
  • Previous by thread: Re: CGI automatic download file
  • Next by thread: Mail.app Attachments Filter
  • Index(es):
    • Date
    • Thread