public
Created

testa_advanced_dash2

  • Download Gist
gistfile1.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/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"

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.