class Patron::Session

def post_file(url, filename, headers = {})

Uploads the contents of a file to the specified +url+ using HTTP POST.
def post_file(url, filename, headers = {})
  request(:post, url, headers, :file => filename)
end