Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
26 lines (15 sloc) 0.515 kb
require "net/http"
require "uri"
uri = URI.parse("")
http =, uri.port)
# make first call to get cookies
request =
response = http.request(request)
# save cookies
cookies = response.response['set-cookie']
# make second call
request ='/#auto|en|Pardon')
# add previously stored cookies
request['Cookie'] = cookies
response = http.request(request)
cookies = response.response['set-cookie'] # => nil
Jump to Line
Something went wrong with that request. Please try again.