36件ヒット
[1-36件を表示]
(0.088秒)
ライブラリ
-
net
/ http (24) -
webrick
/ httprequest (12)
クラス
-
Net
:: HTTP (24) -
WEBrick
:: HTTPRequest (12)
検索結果
先頭3件
-
WEBrick
:: HTTPRequest # query -> Hash (18120.0) -
リクエストのクエリーあるいはクライアントがフォームへ入力した値を表すハッシュを返します。
...巨大な文字列が
生成されてしまいます。
例:
h = req.query
p h['q'] #=> "ruby rails session"
p h['upfile']['content-type'] #=> "plain/text"
p h['upfile'].filename #=> "my_file.txt"
p h['upfile'] #=> "hoge hoge hoge"... -
Net
:: HTTP # post(path , data , header = nil , dest = nil) -> Net :: HTTPResponse (37.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。
...ェクトは有効な body を
持ちません。
POST する場合にはヘッダに Content-Type: を指定する必要があります。
もし header に指定しなかったならば、 Content-Type として
"application/x-www-form-urlencoded" を用います。
dest は時代遅れの引数......esponse, body = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')
# version 1.2
response = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')
# using block
File.open('save.html', 'w') {|f|
http.post('/cgi-bin/search.rb', 'query=subject&target=ruby') do |str|
f.write str... -
Net
:: HTTP # post(path , data , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse (37.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。
...ェクトは有効な body を
持ちません。
POST する場合にはヘッダに Content-Type: を指定する必要があります。
もし header に指定しなかったならば、 Content-Type として
"application/x-www-form-urlencoded" を用います。
dest は時代遅れの引数......esponse, body = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')
# version 1.2
response = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')
# using block
File.open('save.html', 'w') {|f|
http.post('/cgi-bin/search.rb', 'query=subject&target=ruby') do |str|
f.write str...