refactor Net::HTTP usage to use instance

that should fix inconsistencies between ruby 1.9.3 and >= 2.0