lib/httpclient.rb
# :call-seq:
#   post(uri, {query: query, body: body, header: header, follow_redirect: follow_redirect}) -> HTTP::Message
#   post(uri, body, header, follow_redirect) -> HTTP::Message
#
# 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.


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.
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 .
def post(uri, *args, &block)
    if hashy_argument_has_keys(args, :query, :body)
      new_args = args[0]
    else
      new_args = argument_to_hash(args, :body, :header, :follow_redirect)
    end
    request(:post, uri, new_args, &block)
  end
def post ( uri , * args , & block ) if hashy_argument_has_keys ( args , :query , :body ) new_args = args [ 0 ] else new_args = argument_to_hash ( args , :body , :header , :follow_redirect ) end request ( :post , uri , new_args , & block ) end
:call-seq:
post(uri, {query: query, body: body, header: header, follow_redirect: follow_redirect}) -> HTTP::Message
post(uri, body, header, follow_redirect) -> HTTP::Message
: call - seq : post ( uri { query : query body : body header : header follow_redirect : follow_redirect } ) - > HTTP :: Message post ( uri body header follow_redirect ) - > HTTP :: Message
uri
<not_specific>
args
<not_specific>
block
<not_specific>