33件ヒット
[1-33件を表示]
(0.085秒)
クラス
-
Net
:: HTTP (22) -
URI
:: Generic (11)
検索結果
先頭3件
-
URI
:: Generic # query=(s) (18101.0) -
自身の query を設定します。
自身の query を設定します。
@param s 自身の query を表す文字列を指定します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。
@raise URI::InvalidURIError opaque と query を同時に設定した場合に発生します。 -
Net
:: HTTP # post(path , data , header = nil , dest = nil) -> Net :: HTTPResponse (19.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。
...sponse, 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 (19.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。
...sponse, 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...