finish

finish() Instance Public methods Finishes the HTTP session and closes the TCP connection. Raises IOError if the session has not been started.

delete

delete(path, initheader = {'Depth' => 'Infinity'}) Instance Public methods Sends a DELETE request to the path and gets a response, as an HTTPResponse object.

copy

copy(path, initheader = nil) Instance Public methods Sends a COPY request to the path and gets a response, as an HTTPResponse object.

continue_timeout=

continue_timeout=(sec) Instance Public methods Setter for the #continue_timeout attribute.

active?

active?() Instance Public methods Alias for: started?

version_1_2?

version_1_2?() Class Public methods Returns true if net/http is in version 1.2 mode. Defaults to true. is_version_1_2?

version_1_2

version_1_2() Class Public methods Turns on net/http 1.2 (ruby 1.8) features. Defaults to ON in ruby 1.8 or later.

start

HTTP.start(address, port, p_addr, p_port, p_user, p_pass, &block)HTTP.start(address, port=nil, p_addr=nil, p_port=nil, p_user=nil, p_pass=nil, opt, &block) Class Public methods Creates a new Net::HTTP object, then additionally opens the TCP connection and HTTP session. Arguments are the following: address hostname or IP address of the server port port of the server p_addr address of proxy p_port port of proxy p_user user of proxy p_pass

proxy_class?

proxy_class?() Class Public methods returns true if self is a class which was created by HTTP::Proxy.

post_form

post_form(url, params) Class Public methods Posts HTML form data to the specified URI object. The form data must be provided as a Hash mapping from String to String. Example: { "cmd" => "search", "q" => "ruby", "max" => "50" } This method also does Basic Authentication iff url.user exists. But userinfo for authentication is deprecated (RFC3986). So this feature will be removed. Example: require 'net/http' require 'uri' Net::HTTP.post_form URI('http://www.example.com/sear