class Curl::Easy
def http_post(*args)
information.
in order to set multipart_form_post true. See #http_post for more
If you wish to use multipart form encoding, you'll need to supply a block
Curl::Err) on error.
always returns true, or raises an exception (defined under
the current options set for this Curl::Easy instance. This method
POST the specified formdata to the currently configured URL using
Curl::Easy.http_post(url, Curl::PostField, Curl::PostField ..., Curl::PostField) => true
Curl::Easy.http_post(url, "some=urlencoded%20form%20data", Curl::PostField, "and=so%20on", ...) => true
Curl::Easy.http_post(url, "some=urlencoded%20form%20data", "and=so%20on", ...) => true
Curl::Easy.http_post(url, "some=urlencoded%20form%20data&and=so%20on") => true
call-seq:
def http_post(*args) url = args.shift c = Curl::Easy.new url yield c if block_given? c.http_post(*args) c end