Skip to content

Instantly share code, notes, and snippets.

@shaliko
Created March 30, 2011 20:36
Show Gist options
  • Save shaliko/895242 to your computer and use it in GitHub Desktop.
Save shaliko/895242 to your computer and use it in GitHub Desktop.
require 'net/http'
require 'net/https'
http = Net::HTTP.new('usubov.com', 443)
http.use_ssl = true
path = '/messages'
data = "user_id=1234567890"
headers = {
"Content-Type" => "text/html; charset=ISO-8859-4"
}
resp, data = http.post(path, data, headers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment