Ruby Net::HTTP cheat sheet A bunch of examples of various use cases, implemented with Ruby's Net::HTTP library. Alternatives to Net::HTTP This cheat sheet was created many years ago, when invoking Net::HTTP directly was common. These days, there are better alternatives around, with much nicer APIs. Compare multipart file uploads with Net::HTTP: BOUNDARY = "AaB03x" uri = URI.parse("http://something