Ticket #1551 (closed Feature Requests: Obsolete)

Opened 4 years ago

Last modified 3 months ago

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

Changed 20 months ago by soepy

Logged In: YES
user_id=60499
Originator: NO

Confirmed, adding os.environhttp_proxy? = "http://192.168.1.1:80" to the python scripts allows them to use the proxy transparently (urlopen).

XBMC should set that option in the python environment. Please, somebody do this. There really are people behind proxies, and they can't use all the python goodies!

Changed 20 months ago by soepy

Logged In: YES
user_id=60499
Originator: NO

Patch 1688711 fixes this issue.

Changed 3 months ago by sho

  • owner set to Nuka1195
  • platform set to XBox
  • status changed from new to assigned
  • description modified (diff)
  • severity set to Critical

Nuka?

Changed 3 months ago by Nuka1195

  • status changed from assigned to closed
  • resolution set to Outdated (no longer valid)
Note: See TracTickets for help on using tickets.