Skip to content

Instantly share code, notes, and snippets.

@prem
Created October 4, 2008 00:52
Show Gist options
  • Save prem/14688 to your computer and use it in GitHub Desktop.
Save prem/14688 to your computer and use it in GitHub Desktop.
request = Net::HTTP::Post.new( scenario['url'] )
request.body = File.read( "data/#{sample[:path]}" )
request.content_type = 'audio/amr'
response = nil
t = Benchmark.realtime do
response = Net::HTTP.new( url.host, url.port ).start { |http| http.request( request ) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment