diff options
| author | Koen Kooi <koen@openembedded.org> | 2009-07-28 11:32:08 +0200 |
|---|---|---|
| committer | Koen Kooi <koen@openembedded.org> | 2009-07-28 11:32:08 +0200 |
| commit | 19862d4b2f0b03fcb800e41cb2279266a29262a2 (patch) | |
| tree | bd125f1bcc5862173c0e32aec0184c8a9add0228 /classes | |
| parent | 1d5ab38e312a724337e438098cd8ec960f1758d8 (diff) | |
| parent | 0945dd486a086197190808d5755ddf8dc877141e (diff) | |
Merge branch 'org.openembedded.dev' of git@git.openembedded.org:openembedded into org.openembedded.dev
Diffstat (limited to 'classes')
| -rw-r--r-- | classes/oestats-client.bbclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/classes/oestats-client.bbclass b/classes/oestats-client.bbclass index e6b8485385..e4e6206ac4 100644 --- a/classes/oestats-client.bbclass +++ b/classes/oestats-client.bbclass @@ -50,7 +50,12 @@ def oestats_send(d, server, action, vars = {}, files = {}): "Content-type": "multipart/form-data; boundary=%s" % bound, "Content-length": str(len(body))} - # send request using urllib2, proxies should be auto-detected + proxy = bb.data.getVar('HTTP_PROXY', d, True ) + if (proxy): + phl = urllib2.ProxyHandler({'http' : proxy}) + opener = urllib2.build_opener(phl) + urllib2.install_opener(opener) + actionURL = "%s%s" %(server, action) req = urllib2.Request(actionURL, body, headers); response = urllib2.urlopen(req) |
