Skip to content

Instantly share code, notes, and snippets.

Created January 16, 2013 17:24
Show Gist options
  • Save anonymous/4548962 to your computer and use it in GitHub Desktop.
Save anonymous/4548962 to your computer and use it in GitHub Desktop.
get '/foo' do
Net::HTTP.start("printmatic.net") do |http|
resp = http.get('/wp-content/uploads/2012/12/Bird.jpg')
open("Bird.jpg", "wb") do |file|
file.write(resp.body)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment