るりまサーチ

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

別のキーワード

  1. cgi/html form
  2. cgi/html doctype
  3. cgi/html element_init
  4. cgi/html multipart_form
  5. cgi/html img

ライブラリ

クラス

キーワード

検索結果

<< < 1 2 >>

Net::HTTP#post(path, data, header = nil, dest = nil) -> Net::HTTPResponse (13.0)

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

...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#requ...

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

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

...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#requ...
<< < 1 2 >>