06-23-2017, 10:18 AM | #1 |
Member
Posts: 21
Karma: 10
Join Date: Nov 2013
Device: Pocketbook Lux 3 / iPad Mini retina/iPhone 6
|
Authenticated http proxy
Hello, forgive me to bring that http proxy issue again.
I'm running calibre 3.0 on a 10.12.5 macOS and we are now using an authenticated proxy here. My system proxy setup has my username/password configured in Preferences but calibre does not pick up these, only the hostname & port (and thus timeout when trying to access the Internet). I am not going to put my password in the http_proxy environment variable, ever. Is there a way for Calibre to pick up the credentials too and use them? PS: Using tsocks (a command-line SOCKS proxy) with calibre but it has recently stopped working like all Python-based apps, presumably because you can't inject a shared library (the way tsocks work) into the system python |
06-23-2017, 11:08 AM | #2 |
creator of calibre
Posts: 43,778
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you are not willing to use an env var then no, there is no other way.
|
Advert | |
|
06-26-2017, 03:34 AM | #3 |
Member
Posts: 21
Karma: 10
Join Date: Nov 2013
Device: Pocketbook Lux 3 / iPad Mini retina/iPhone 6
|
|
06-26-2017, 03:46 AM | #4 |
creator of calibre
Posts: 43,778
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre uses the python stdlib function urllib.getproxies() to get proxy information. I'm afraid I dont have any insight into how it operates on OS X
|
06-26-2017, 03:50 AM | #5 |
creator of calibre
Posts: 43,778
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
Advert | |
|
06-26-2017, 05:37 AM | #6 | |
Member
Posts: 21
Karma: 10
Join Date: Nov 2013
Device: Pocketbook Lux 3 / iPad Mini retina/iPhone 6
|
Quote:
Code:
Python 2.7.10 (default, Feb 6 2017, 23:53:20) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from _scproxy import _get_proxy_settings, _get_proxies >>> _get_proxies() {} |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HTTP Error 407: Proxy Authentication Required | pieterwiese | Devices | 11 | 06-11-2012 02:23 AM |
Using calibre in a proxy. fetching metadata proxy authentication required | shiftymorgan | Calibre | 8 | 05-13-2011 03:45 AM |
Proxy authentication problems (I have no proxy) | fogus | Calibre | 16 | 03-08-2009 01:27 PM |