Skip to content

Instantly share code, notes, and snippets.

@simen
Created October 12, 2012 12:40
Show Gist options
  • Save simen/3879026 to your computer and use it in GitHub Desktop.
Save simen/3879026 to your computer and use it in GitHub Desktop.
Hammer Pebbles through Varnish
require 'curb'
loop do
t = Time.now
url = "http://www.op.no/api/grove/v1/posts/post.track:apdm.bandwagon.innerwest.op.135234$135237,post.track:apdm.bandwagon.innerwest.op.135234$135239,post.track:apdm.bandwagon.innerwest.op.135234$135241,post.track:apdm.bandwagon.innerwest.op.145785$145788,post.track:apdm.bandwagon.innerwest.op.5746$5749,post.track:apdm.bandwagon.innerwest.op.6093$6407,post.track:apdm.bandwagon.innerwest.op.145785$145808,post.track:apdm.bandwagon.innerwest.op.5746$5748,post.track:apdm.bandwagon.innerwest.op.5295$114847,post.track:apdm.bandwagon.innerwest.op.5295$99085,?"
http = Curl.get(url)
if http.response_code != 200
puts
puts
puts "GET #{url}"
puts t.to_s
puts http.header_str
end
print '.'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment