From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QcETn-0006l0-U9 for garchives@archives.gentoo.org; Thu, 30 Jun 2011 10:28:16 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EDC2B1C08A; Thu, 30 Jun 2011 10:28:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id BBF961C08A for ; Thu, 30 Jun 2011 10:28:08 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 368A41B400F for ; Thu, 30 Jun 2011 10:28:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 855DE8003C for ; Thu, 30 Jun 2011 10:28:07 +0000 (UTC) From: "Vikraman Choudhury" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Vikraman Choudhury" Message-ID: <1ffb2e836bca869b5d7c3dc1d5642842ad9a3a3c.vikraman@gentoo> Subject: [gentoo-commits] proj/gentoostats:master commit in: client/ X-VCS-Repository: proj/gentoostats X-VCS-Files: client/gentoostats-send X-VCS-Directories: client/ X-VCS-Committer: vikraman X-VCS-Committer-Name: Vikraman Choudhury X-VCS-Revision: 1ffb2e836bca869b5d7c3dc1d5642842ad9a3a3c Date: Thu, 30 Jun 2011 10:28:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 7503c8ba7cb82772d64c8daccfcd49d3 commit: 1ffb2e836bca869b5d7c3dc1d5642842ad9a3a3c Author: Vikraman Choudhury gmail com> AuthorDate: Thu Jun 30 10:25:33 2011 +0000 Commit: Vikraman Choudhury gmail com> CommitDate: Thu Jun 30 10:25:33 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoostats.g= it;a=3Dcommit;h=3D1ffb2e83 use https instead of http --- 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=3DFalse): def main(): parser =3D argparse.ArgumentParser(description=3D'Gentoostats client') parser.add_argument('-s', '--server', default=3D'soc.dev.gentoo.org') - parser.add_argument('-p', '--port', type =3D int, default=3D80) + parser.add_argument('-p', '--port', type =3D int, default=3D443) parser.add_argument('-u', '--url', default=3D'/gentoostats') parser.add_argument('-a', '--auth', default=3D'/etc/gentoostats/auth.c= fg') parser.add_argument('-c', '--config', default=3D'/etc/gentoostats/payl= oad.cfg') @@ -54,7 +54,7 @@ def main(): post_body =3D serialize(post_data,human=3DTrue) post_headers =3D {'Content-type':'application/json'} =20 - conn =3D httplib.HTTPConnection(args['server'] + ':' + str(args['port'= ])) + conn =3D httplib.HTTPSConnection(args['server'] + ':' + str(args['port= '])) conn.request('POST', url=3Dpost_url, headers=3Dpost_headers, body=3Dpo= st_body) =20 #TODO: Handle exceptions