def post(url, data, headers = {})
      if data.is_a?(Hash)
        data = data.map {|k,v| urlencode(k.to_s) + '=' + urlencode(v.to_s) }.join('&')
        headers['Content-Type'] = 'application/x-www-form-urlencoded'
      end
      request(:post, url, headers, :data => data)
    end
def post(url, data, headers = {})
      if data.is_a?(Hash)
        data = data.map {|k,v| urlencode(k.to_s) + '=' + urlencode(v.to_s) }.join('&')
        headers['Content-Type'] = 'application/x-www-form-urlencoded'
      end
      request(:post, url, headers, :data => data)
    end
Uploads the passed `data` to the specified `url` using an HTTP POST.

 @param url[String] the URL to fetch
 @param data[Hash, #to_s, #to_path] a Hash of form fields/values,
   or an object that can be converted to a String
   to create the request body, or an object that responds to #to_path to upload the
   entire request body from that file
 @param headers[Hash] the hash of header keys to values
 @return [Patron::Response]