Created
October 12, 2012 12:40
-
-
Save simen/3879026 to your computer and use it in GitHub Desktop.
Hammer Pebbles through Varnish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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