Skip to content

Instantly share code, notes, and snippets.

@dcluna
Created August 23, 2012 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcluna/3436398 to your computer and use it in GitHub Desktop.
Save dcluna/3436398 to your computer and use it in GitHub Desktop.
testa_advanced_dash2
#!/usr/bin/env ruby
require 'cgi'
json = "{'action':'UpdateTicketPriority', 'params':{'TICKETID':'1001','INTERNAL_PRIORITY':'1'}}"
base_url = "http://10.1.1.172:7001/advdash2data/ActionService?json_req="
encoded_json = CGI.encode(json)
full_url = base_url + encoded_json
request_number = 10
requests = [full_url] * request_number
sh "echo #{requests.join(' ')} | xargs -P #{request_number} wget"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment