33件ヒット
[1-33件を表示]
(0.096秒)
ライブラリ
-
net
/ http (22) -
rexml
/ document (11)
クラス
-
Net
:: HTTP (22) -
REXML
:: Instruction (11)
検索結果
先頭3件
-
REXML
:: Instruction # target=(value) (21101.0) -
XML 処理命令のターゲットを value に変更します。
XML 処理命令のターゲットを value に変更します。
@param value 新たなターゲット(文字列) -
Net
:: HTTP # post(path , data , header = nil , dest = nil) -> Net :: HTTPResponse (219.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。
...ヘッダに Content-Type: を指定する必要があります。
もし header に指定しなかったならば、 Content-Type として
"application/x-www-form-urlencoded" を用います。
dest は時代遅れの引数です。利用しないでください。
dest を指定した場合に......す。
//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... -
Net
:: HTTP # post(path , data , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse (219.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。
...ヘッダに Content-Type: を指定する必要があります。
もし header に指定しなかったならば、 Content-Type として
"application/x-www-form-urlencoded" を用います。
dest は時代遅れの引数です。利用しないでください。
dest を指定した場合に......す。
//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...