PATH:
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Net
/
HTTP
--- !ruby/object:RI::MethodDescription aliases: - !ruby/object:RI::AliasName name: post2 block_params: +response+ comment: - !ruby/struct:SM::Flow::P body: Sends a POST request to the <tt>path</tt> and gets a response, as an HTTPResponse object. - !ruby/struct:SM::Flow::P body: When called with a block, yields an HTTPResponse object. The body of this response will not have been read yet; the caller can process it using HTTPResponse#read_body, if desired. - !ruby/struct:SM::Flow::P body: Returns the response. - !ruby/struct:SM::Flow::P body: This method never raises Net::* exceptions. - !ruby/struct:SM::Flow::VERB body: " # example\n response = http.request_post('/cgi-bin/nice.rb', 'datadatadata...')\n p response.status\n puts response.body # body is already read\n\n # using block\n http.request_post('/cgi-bin/nice.rb', 'datadatadata...') {|response|\n p response.status\n p response['content-type']\n response.read_body do |str| # read body now\n print str\n end\n }\n" full_name: Net::HTTP#request_post is_singleton: false name: request_post params: (path, data, initheader = nil) {|+response+| ...} visibility: public
[+]
Move
[-] addr_port-i.yaml
[edit]
[+]
Copy
[-] send_request-i.yaml
[edit]
[-] ssl_timeout%3d-i.yaml
[edit]
[-] active%3f-i.yaml
[edit]
[-] use_ssl-i.yaml
[edit]
[-] start-c.yaml
[edit]
[-] proxy_port-i.yaml
[edit]
[-] ssl_context_accessor-c.yaml
[edit]
[-] proxyaddr-i.yaml
[edit]
[-] propfind-i.yaml
[edit]
[-] edit_path-i.yaml
[edit]
[-] proxy_user-i.yaml
[edit]
[-] proxyport-i.yaml
[edit]
[-] get_print-c.yaml
[edit]
[+]
Post
[-] post2-i.yaml
[edit]
[+]
Delete
[-] version_1_1%3f-c.yaml
[edit]
[-] use_ssl%3d-i.yaml
[edit]
[-] started%3f-i.yaml
[edit]
[-] connect-i.yaml
[edit]
[-] http_default_port-c.yaml
[edit]
[-] begin_transport-i.yaml
[edit]
[-] conn_address-i.yaml
[edit]
[-] version_1_2%3f-c.yaml
[edit]
[+]
Options
[+]
Lock
[-] on_connect-i.yaml
[edit]
[+]
Put
[-] move-i.yaml
[edit]
[-] keep_alive%3f-i.yaml
[edit]
[-] peer_cert-i.yaml
[edit]
[-] get-i.yaml
[edit]
[-] D-i.yaml
[edit]
[-] cdesc-HTTP.yaml
[edit]
[-] timeout%3d-i.yaml
[edit]
[-] do_finish-i.yaml
[edit]
[+]
ProxyDelta
[-] get-c.yaml
[edit]
[-] request-i.yaml
[edit]
[-] start-i.yaml
[edit]
[+]
Unlock
[-] default_port-c.yaml
[edit]
[-] finish-i.yaml
[edit]
[-] unlock-i.yaml
[edit]
[-] request_post-i.yaml
[edit]
[-] get_response-c.yaml
[edit]
[-] read_timeout%3d-i.yaml
[edit]
[-] inspect-i.yaml
[edit]
[-] delete-i.yaml
[edit]
[-] get2-i.yaml
[edit]
[-] version_1_2-c.yaml
[edit]
[+]
Head
[-] proxy_class%3f-c.yaml
[edit]
[-] version_1_1-c.yaml
[edit]
[-] end_transport-i.yaml
[edit]
[-] https_default_port-c.yaml
[edit]
[-] proxy_address-i.yaml
[edit]
[+]
Mkcol
[-] mkcol-i.yaml
[edit]
[-] set_debug_output-i.yaml
[edit]
[-] proxy_pass-i.yaml
[edit]
[-] do_start-i.yaml
[edit]
[-] lock-i.yaml
[edit]
[-] conn_port-i.yaml
[edit]
[-] ssl_timeout-i.yaml
[edit]
[+]
..
[-] request_head-i.yaml
[edit]
[-] copy-i.yaml
[edit]
[-] trace-i.yaml
[edit]
[+]
Get
[+]
Propfind
[-] new-c.yaml
[edit]
[-] head2-i.yaml
[edit]
[-] head-i.yaml
[edit]
[-] proppatch-i.yaml
[edit]
[-] post-i.yaml
[edit]
[-] Proxy-c.yaml
[edit]
[-] post_form-c.yaml
[edit]
[-] options-i.yaml
[edit]
[-] request_get-i.yaml
[edit]
[+]
Proppatch
[+]
Trace
[-] use_ssl%3f-i.yaml
[edit]
[-] proxy%3f-i.yaml
[edit]