Skip to content

Instantly share code, notes, and snippets.

View danielmorrison's full-sized avatar

Daniel Morrison danielmorrison

View GitHub Profile
require "net/http"
require "cgi"
pid = 1
http = Net::HTTP.new('www.pepperjamnetwork.com', 80)
loop do
request = Net::HTTP::Get.new("/affiliate/optout.php?pid=#{pid}&optout=1")
cookie = CGI::Cookie.new("PHPSESSID", "REPLACE WITH ACTUAL SESSION ID")
request['Cookie'] = cookie.to_s
r = http.request(request)