Skip to content

Instantly share code, notes, and snippets.

@brwnx
Created May 22, 2009 17:30
Show Gist options
  • Select an option

  • Save brwnx/116255 to your computer and use it in GitHub Desktop.

Select an option

Save brwnx/116255 to your computer and use it in GitHub Desktop.
parms= "doaction=patron-login&data=dest%3DXWW%2Fpub%2Fpatronstatus.html+doaction%3D+data%3D+group%3Dpub+tickno%3DLÅNENUMMBER+pin%3PINKODE"
h = Net::HTTP.new("stormp.kk.dk",443)
h.use_ssl = true
res = h.post("/sites/XWW/pub/patronstatus.html",parms).body.gsub("\r","").gsub("\n","")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment