Method: HTTPClient#post
- Defined in:
- lib/httpclient.rb
#post(uri, *args, &block) ⇒ Object
Sends POST request to the specified URL. See request for arguments. You should not depend on :follow_redirect => true for POST method. It sends the same POST method to the new location which is prohibited in HTTP spec.
683 684 685 |
# File 'lib/httpclient.rb', line 683 def post(uri, *args, &block) request(:post, uri, argument_to_hash(args, :body, :header, :follow_redirect), &block) end |