Ticket #1551 (closed Feature Requests: Obsolete)
Python & HTTP Proxy
| Reported by: | jutski | Owned by: | Nuka1195 |
|---|---|---|---|
| Priority: | 5 | Milestone: | |
| Component: | Python Code and/or Scripts | Version: | None |
| Severity: | Critical | Keywords: | |
| Cc: | Platform: | XBox | |
| Revision: |
Description (last modified by sho) (diff)
As far as I can tell, XBMC doesn't set the environment
variable 'http_proxy' (os.environ.get('http_proxy')
returns 'None'). This causes Python scripts to not work
behind a proxy.
From http://docs.python.org/lib/module-urllib.html:
"The urlopen() function works transparently with
proxies which do not require authentication. In a Unix
or Windows environment, set the http_proxy, ftp_proxy
or gopher_proxy environment variables to a URL that
identifies the proxy server before starting the Python
interpreter."
Change History
Note: See
TracTickets for help on using
tickets.
