209件ヒット
[201-209件を表示]
(0.211秒)
ライブラリ
-
cgi
/ core (22) -
net
/ http (33) -
net
/ imap (44) - open-uri (44)
-
rexml
/ document (22) -
rexml
/ streamlistener (11) -
webrick
/ httprequest (11) -
webrick
/ httpresponse (11) -
webrick
/ httputils (11)
クラス
- CGI (22)
-
Net
:: IMAP :: BodyTypeText (44) -
REXML
:: Instruction (22) -
WEBrick
:: HTTPRequest (11) -
WEBrick
:: HTTPResponse (11) -
WEBrick
:: HTTPUtils :: FormData (11)
モジュール
-
Net
:: HTTPHeader (33) -
OpenURI
:: Meta (44) -
REXML
:: StreamListener (11)
キーワード
- [] (11)
- charset (22)
-
content
_ id (11) -
content
_ type (22) -
content
_ type= (11) - description (11)
- disposition (11)
- encoding (11)
- entitydecl (11)
- header (11)
-
main
_ type (11) - out (11)
- query (11)
-
sub
_ type (11) - target (11)
検索結果
-
CGI
# out(options = "text / html") { . . . . } (262.0) -
HTTP ヘッダと、ブロックで与えられた文字列を標準出力に出力します。
...に出力します。
HEADリクエスト (REQUEST_METHOD == "HEAD") の場合は HTTP ヘッダのみを出力します。
charset が "iso-2022-jp"・"euc-jp"・"shift_jis" のいずれかで
ある場合は文字列エンコーディングを自動変換し、language を "ja"にします。
@......す。
例:
cgi = CGI.new
cgi.out{ "string" }
# Content-Type: text/html
# Content-Length: 6
#
# string
cgi.out("text/plain"){ "string" }
# Content-Type: text/plain
# Content-Length: 6
#
# stri......=> true,
"status" => "OK", # == "200 OK"
"server" => ENV['SERVER_SOFTWARE'],
"connection" => "close",
"type" => "text/html",
"charset" => "iso-2022-jp",
# Content-Type: text/html...