HTTP Headers Help

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Jeremy C. Reed
日付:  
題目: HTTP Headers Help
On 26 Feb 2003, Bryce C wrote:

> I'm trying to write a php script that passes a binary file through it
> for download. This is to protect the file's true location (not web
> accessible) and to allow my logger to log the transaction.
> Unfortunately, the filename doesn't get copied. That is, the file to
> download shout be x.tar.gz but I get download.php. Can someone help?


Try using an HTTP redirect, like:

Location: http://www.whatever.foo/the.file

followed by two newlines.


Jeremy C. Reed
http://bsd.reedmedia.net/