Skip to content

Instantly share code, notes, and snippets.

@zamith
Created November 21, 2012 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zamith/4124148 to your computer and use it in GitHub Desktop.
Save zamith/4124148 to your computer and use it in GitHub Desktop.
Emulate HTTPS POST
url="https://exportwriter.zoho.com/remotedoc.im?apikey=#{apikey}&output=url"
uri = URI.parse(url)
req = Net::HTTP::Post.new(uri.path)
req.set_form_data(params)
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
response = http.request(req)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment