blob: d7a92c08cfe0552f191a2a04907230f80150d00e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/env python
import sys
from twisted.internet import task
from leap.common.http import HTTPClient
def main(reactor, host):
def cb(_):
print "OK"
client = HTTPClient()
return client.request(host).addCallback(cb)
task.react(main, sys.argv[1:])
|