Sha256: c79fe6033d673f5176fbdce18114aaafb7cf33c23df20563e858be05f997c82c
Contents?: true
Size: 222 Bytes
Versions: 3
Compression:
Stored size: 222 Bytes
Contents
http = HTTPClient.new p http.debug_dev http.debug_dev = STDOUT file = File.open("api_rest.pdf") class <<file undef :size end result = http.post('http://www.google.com/', file, {"Content-Type" => 'audio/wav'}) p result
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
httpclient-2.5.0 | sample/post.rb |
vagrant-tiktalik-0.0.3 | vendor/bundle/ruby/2.0.0/gems/httpclient-2.4.0/sample/post.rb |
httpclient-2.4.0 | sample/post.rb |