diff options
author | 2011-06-30 15:55:33 +0530 | |
---|---|---|
committer | 2011-06-30 15:55:33 +0530 | |
commit | 1ffb2e836bca869b5d7c3dc1d5642842ad9a3a3c (patch) | |
tree | 566e68bb81d6972e67e62f53b3db6640f25fa168 | |
parent | tests for server (diff) | |
download | gentoostats-1ffb2e836bca869b5d7c3dc1d5642842ad9a3a3c.tar.gz gentoostats-1ffb2e836bca869b5d7c3dc1d5642842ad9a3a3c.tar.bz2 gentoostats-1ffb2e836bca869b5d7c3dc1d5642842ad9a3a3c.zip |
use https instead of http
-rwxr-xr-x | client/gentoostats-send | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/gentoostats-send b/client/gentoostats-send index ecc0be8..73d53a2 100755 --- a/client/gentoostats-send +++ b/client/gentoostats-send @@ -34,7 +34,7 @@ def serialize(object, human=False): def main(): parser = argparse.ArgumentParser(description='Gentoostats client') parser.add_argument('-s', '--server', default='soc.dev.gentoo.org') - parser.add_argument('-p', '--port', type = int, default=80) + parser.add_argument('-p', '--port', type = int, default=443) parser.add_argument('-u', '--url', default='/gentoostats') parser.add_argument('-a', '--auth', default='/etc/gentoostats/auth.cfg') parser.add_argument('-c', '--config', default='/etc/gentoostats/payload.cfg') @@ -54,7 +54,7 @@ def main(): post_body = serialize(post_data,human=True) post_headers = {'Content-type':'application/json'} - conn = httplib.HTTPConnection(args['server'] + ':' + str(args['port'])) + conn = httplib.HTTPSConnection(args['server'] + ':' + str(args['port'])) conn.request('POST', url=post_url, headers=post_headers, body=post_body) #TODO: Handle exceptions |