Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#!/usr/bin/env ruby
require 'cgi'
json = "{'action':'UpdateTicketPriority', 'params':{'TICKETID':'1001','INTERNAL_PRIORITY':'1'}}"
base_url = ""
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