2009-11-27
HTTPヘッダ
htmlを出力
print <<_HTML_; Content-Type: text/html _HTML_
htmlをutf-8で出力
print <<_HTML_; Content-Type: text/html;charset=utf-8 _HTML_
テキストファイルを出力
print <<_HTML_; Content-Type: text/plain _HTML_
テキストファイルをutf-8で出力
print <<_HTML_; Content-Type: text/plain;charset=utf-8 _HTML_
gif形式の画像を出力
print <<_HTML_; Content-Type: image/gif _HTML_
pdfを出力
print <<_HTML_; Content-Type: application/pdf _HTML_
コメント
