Guest User

Untitled

a guest
Jul 16th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. http = Net::HTTP.new('yourdomain.com', 443)
  2. http.use_ssl = true
  3. path = '/some_path.html'
  4.  
  5. cookie=".mycookie info"
  6.  
  7. resp = http.get path, "Cookie" => cookie
  8.  
  9. puts resp.read_body
Add Comment
Please, Sign In to add comment