2010-04-20から1日間の記事一覧

ファイルをダウンロードさせるときのhttp header とファイル名

http://www.studyinghttp.net/header Content-Dispositionヘッダでファイル名を指定。 Content-Disposition: attachment; filename="hoge.txt"perlのCGIモジュールなら $self->header( -attachment => 'hoge.txt', ); とすればContent-Dispositionにhoge.txt…