546件ヒット
[501-546件を表示]
(0.118秒)
ライブラリ
- ビルトイン (60)
-
cgi
/ html (96) - e2mmap (12)
-
irb
/ context (24) -
net
/ http (108) - openssl (24)
-
rdoc
/ markup (12) -
rdoc
/ markup / formatter (12) -
rubygems
/ format (12) -
rubygems
/ old _ format (12) -
rubygems
/ platform (24) -
rubygems
/ source _ index (12) -
rubygems
/ source _ info _ cache (24) -
rubygems
/ specification (60) -
rubygems
/ version _ option (12) - scanf (6)
クラス
-
Encoding
:: Converter (48) -
Gem
:: Format (12) -
Gem
:: OldFormat (12) -
Gem
:: Platform (24) -
Gem
:: SourceIndex (12) -
Gem
:: SourceInfoCache (24) -
Gem
:: Specification (60) -
IRB
:: Context (24) -
Net
:: HTTP (72) -
OpenSSL
:: PKey :: EC :: Group (24) -
RDoc
:: Markup (12) -
RDoc
:: Markup :: Formatter (12) -
RDoc
:: Options (36) -
Scanf
:: FormatSpecifier (6) - Time (12)
モジュール
-
CGI
:: HtmlExtension (96) - Exception2MessageMapper (12)
-
Gem
:: VersionOption (12) -
Net
:: HTTPHeader (36)
キーワード
-
add
_ platform _ option (12) -
content
_ type (12) -
content
_ type= (12) - conversion (6)
- convert (24)
-
def
_ exception (6) - formatter (12)
- formatter= (12)
-
image
_ format (12) -
multipart
_ form (48) -
original
_ platform (12) -
original
_ platform= (12) - platform (12)
- platform= (12)
-
point
_ conversion _ form (12) -
point
_ conversion _ form= (12) - post (24)
- post2 (24)
-
primitive
_ convert (48) -
request
_ post (24) - requirements= (12)
-
return
_ format (12) -
return
_ format= (12) - search (24)
-
search
_ with _ source (12) -
set
_ content _ type (12) - spec (24)
- strftime (12)
- version (12)
- version= (12)
検索結果
先頭4件
- Net
:: HTTP # post(path , data , header = nil , dest = nil) -> Net :: HTTPResponse - Net
:: HTTP # post(path , data , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse - Net
:: HTTP # post2(path , data , header = nil) -> Net :: HTTPResponse - Net
:: HTTP # request _ post(path , data , header = nil) -> Net :: HTTPResponse
-
Net
:: HTTP # post(path , data , header = nil , dest = nil) -> Net :: HTTPResponse (107.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。
...送ります。
返り値は Net::HTTPResponse のインスタンスです。
ブロックと一緒に呼びだされたときはエンティティボディを少しずつ文字列として
ブロックに与えます。このとき戻り値の HTTPResponse オブジェクトは有効な body を......持ちません。
POST する場合にはヘッダに Content-Type: を指定する必要があります。
もし header に指定しなかったならば、 Content-Type として
"application/x-www-form-urlencoded" を用います。
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.... -
Net
:: HTTP # post(path , data , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse (107.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。
...送ります。
返り値は Net::HTTPResponse のインスタンスです。
ブロックと一緒に呼びだされたときはエンティティボディを少しずつ文字列として
ブロックに与えます。このとき戻り値の HTTPResponse オブジェクトは有効な body を......持ちません。
POST する場合にはヘッダに Content-Type: を指定する必要があります。
もし header に指定しなかったならば、 Content-Type として
"application/x-www-form-urlencoded" を用います。
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.... -
Net
:: HTTP # post2(path , data , header = nil) -> Net :: HTTPResponse (107.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。 返り値は Net::HTTPResponse のインスタンスです。
...サーバ上の path にあるエンティティに対し文字列 data を
POST で送ります。
返り値は Net::HTTPResponse のインスタンスです。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { '......た状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
POST する場合にはヘッダに Content-Type: を指定する必要があります。
もし header に指定しなかったならば、 Content-Type として
"application/x-www-form-urlencoded" を用います......][ruby]{
response = http.request_post('/cgi-bin/nice.rb', 'datadatadata...')
p response.status
puts response.body # body is already read
# using block
http.request_post('/cgi-bin/nice.rb', 'datadatadata...') {|response|
p response.status
p response['content-type']
response.read_body... -
Net
:: HTTP # request _ post(path , data , header = nil) -> Net :: HTTPResponse (107.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。 返り値は Net::HTTPResponse のインスタンスです。
...サーバ上の path にあるエンティティに対し文字列 data を
POST で送ります。
返り値は Net::HTTPResponse のインスタンスです。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { '......た状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
POST する場合にはヘッダに Content-Type: を指定する必要があります。
もし header に指定しなかったならば、 Content-Type として
"application/x-www-form-urlencoded" を用います......][ruby]{
response = http.request_post('/cgi-bin/nice.rb', 'datadatadata...')
p response.status
puts response.body # body is already read
# using block
http.request_post('/cgi-bin/nice.rb', 'datadatadata...') {|response|
p response.status
p response['content-type']
response.read_body...