るりまサーチ

最速Rubyリファレンスマニュアル検索!
312件ヒット [301-312件を表示] (0.022秒)

別のキーワード

  1. _builtin end
  2. ripper end_seen?
  3. _builtin exclude_end?
  4. _builtin end_with?
  5. io seek_end

ライブラリ

モジュール

キーワード

検索結果

<< < ... 2 3 4 >>

Net::HTTP#post(path, data, header = nil, dest = nil) {|body_segment| .... } -> Net::HTTPResponse (119.0)

サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。

...送ります。

返り値は Net::HTTPResponse のインスタンスです。

ブロックと一緒に呼びだされたときはエンティティボディを少しずつ文字列として
ブロックに与えます。このとき戻り値の HTTPResponse オブジェクトは有効な body を...
...ブジェクト, そのボディ] となります。

//emlist[例][ruby]{
# net/http version 1.1
response
, 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
end

}
//}

@see Net::HTTP#request_post...
<< < ... 2 3 4 >>