Python CGIat PHPPython CGI - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト37:nobodyさん 08/01/08 17:07:19 b 38:nobodyさん 08/01/09 12:10:27 bcpl 39:nobodyさん 08/01/17 14:40:53 pythonでContent-type: application/octet-stream と指定したいんだけど、どうすればいいの 40:nobodyさん 08/01/17 18:11:42 setHeader(name, value): Sets an HTTP return header "name" with value "value", clearing the previous value set for the header, if one exists. If the literal flag is true, the case of the header name is preserved, otherwise word-capitalization will be performed on the header name on output. Permission Always available 41:nobodyさん 08/01/17 19:48:54 できないんですね。諦めました 42:nobodyさん 08/01/25 06:20:43 >>39 CGIならそのまま print "COntent-Type: application/octeat-stream" print "" でいいんじゃないの? 43:nobodyさん 08/02/07 17:51:11 >>24 昔、 f = cgi.FieldStorage() g = cgi.FieldSrorage() とやると、g には情報が入ってないということに気づいてなくて、 ハマった思い出がある・・・、それかも? 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch