From: Christophe de Vienne Date: Mon, 3 Sep 2012 15:39:01 +0000 (+0200) Subject: Add support for authentication over https X-Git-Tag: v0.2.23~271^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2452db5b8558633a4b2b27297891ff3548faf7b4;p=tools%2Fpython-jenkinsapi.git Add support for authentication over https --- diff --git a/jenkinsapi/utils/urlopener.py b/jenkinsapi/utils/urlopener.py index b6e7942..9dd5a2f 100644 --- a/jenkinsapi/utils/urlopener.py +++ b/jenkinsapi/utils/urlopener.py @@ -27,6 +27,9 @@ class PreemptiveBasicAuthHandler(urllib2.BaseHandler): req.add_unredirected_header('Authorization', auth) return req + def https_request(self,req): + return self.http_request(req) + def mkurlopener( jenkinsuser, jenkinspass, jenkinsurl, proxyhost, proxyport, proxyuser, proxypass ): """ Creates an url opener that works with both jenkins auth and proxy auth