mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-26 21:22:27 -06:00
834e0f4385
god fucking damn voltage
14 lines
543 B
Python
14 lines
543 B
Python
import urllib2
|
|
|
|
def executeHttpRequest(url, agent, **extras):
|
|
request = urllib2.Request('http://127.0.0.1:45749/' + url)
|
|
request.add_header('User-Agent', 'TTS-' + agent)
|
|
request.add_header('Secret-Key', '1X5oN69^#0^fCw7s#uyQTWYJ!8m9z!6Midphf90gMQYl*L5Uy!Ri5KTP6@BbZ5#Tlm37bJAI')
|
|
for k, v in extras.items():
|
|
request.add_header(k, v)
|
|
try:
|
|
return urllib2.urlopen(request).read()
|
|
except:
|
|
return None
|
|
|
|
print executeHttpRequest('ban', 'Game', username='dev', enddate=1428408418062, comment='asshole')
|