Fallback to a slightly archaic use of Net::HTTP so that it works on ruby 1.9.3 (closes #118).