sapling/mercurial
Henrik Stuart a79a5a1a15 url: use CONNECT for HTTPS connections through HTTP proxy (issue967)
urllib2 and httplib does not support using CONNECT proxy requests, but
only regular requests over the proxy. This does not work with HTTPS
requests as they typically require that the client issues a CONNECT to
the proxy to give a direct connection to the remote HTTPS server.

This is solved by duplicating some of the httplib functionality and
tying it together with the keepalive library such that a HTTPS
connection that need to be proxied can be proxied by letting a
connection be established to the proxy server and then subsequently
performing the normal request to the specified server through the
proxy server.

As it stands, the code also purports to support HTTPS proxies, i.e.
proxies that you connect to using SSL. These are extremely rare and
nothing is done to ensure that CONNECT requests can be made to these
as that would require multiple SSL handshakes. This use case is also
not supported by most other contemporary web tools like curl and
Firefox3.
2009-05-22 08:56:43 +02:00
..
hgweb named branches: server branchmap wire protocol support (issue736) 2009-05-23 17:02:49 +02:00
pure posixfile: remove posixfile_nt and fix import bug in windows.py 2009-05-13 21:36:16 +02:00
__init__.py Add back links from file revisions to changeset revisions 2005-05-03 13:16:10 -08:00
ancestor.py ancestor: use set instead of dict 2009-05-17 03:53:13 +02:00
archival.py use 'x is None' instead of 'x == None' 2009-05-20 00:52:46 +02:00
base85.c Some additional space/tab cleanups 2008-10-20 15:19:05 +02:00
bdiff.c bdiff: add comment about normalization 2009-01-12 17:51:57 +01:00
bundlerepo.py separate import lines from mercurial and general python modules 2009-04-28 17:40:46 +02:00
byterange.py byterange: fix import error 2009-05-14 13:20:04 +02:00
changegroup.py separate import lines from mercurial and general python modules 2009-04-28 17:40:46 +02:00
changelog.py commit: move description trimming into changelog 2009-05-18 17:36:24 -05:00
cmdutil.py match: refactor patkind 2009-05-24 02:56:14 -05:00
commands.py commands: standardize parents command meta data 2009-05-22 18:57:53 +02:00
config.py separate import lines from mercurial and general python modules 2009-04-28 17:40:46 +02:00
context.py workingfilectx: always use the same filelog, even for renames 2009-05-20 02:08:53 +02:00
copies.py use 'x is None' instead of 'x == None' 2009-05-20 00:52:46 +02:00
demandimport.py updated license to be explicit about GPL version 2 2009-04-26 01:08:54 +02:00
diffhelpers.c Handle patches with misformatted empty lines 2007-11-01 17:15:50 -05:00
dirstate.py dirstate: skip step 3 in walk if nothing new will match 2009-05-14 19:54:26 +02:00
dispatch.py dispatch: remember loaded extensions in a real set 2009-05-07 17:56:57 +02:00
encoding.py separate import lines from mercurial and general python modules 2009-04-28 17:40:46 +02:00
error.py turn some comments back into module docstrings 2009-04-26 01:24:49 +02:00
extensions.py ui: print_exc() -> traceback() 2009-04-26 16:50:44 -05:00
fancyopts.py some modernization cleanups, forward compatibility 2009-05-13 14:08:39 +02:00
filelog.py filelog encoding: move the encoding/decoding into store 2009-05-20 18:35:47 +02:00
filemerge.py match: add some default args 2009-05-24 02:56:14 -05:00
graphmod.py updated license to be explicit about GPL version 2 2009-04-26 01:08:54 +02:00
hbisect.py hbisect: use set.update for bulk updates 2009-05-17 16:57:12 +02:00
help.py help: document nonempty template filter. 2009-04-28 17:30:00 +02:00
hg.py clone: try updating to the actual changeset specified in options 2009-05-14 22:00:56 +02:00
hook.py some modernization cleanups, forward compatibility 2009-05-13 14:08:39 +02:00
httprepo.py named branches: client branchmap wire protocol support (issue736) 2009-05-23 17:03:51 +02:00
i18n.py separate import lines from mercurial and general python modules 2009-04-28 17:40:46 +02:00
ignore.py match: add some default args 2009-05-24 02:56:14 -05:00
keepalive.py util: remove md5 2009-05-04 21:30:39 +02:00
localrepo.py match: add some default args 2009-05-24 02:56:14 -05:00
lock.py separate import lines from mercurial and general python modules 2009-04-28 17:40:46 +02:00
lsprof.py cleanup: drop unused assignments 2009-03-23 13:13:06 +01:00
lsprofcalltree.py drop unused imports 2009-05-14 15:35:46 +02:00
mail.py patchbomb: quoted-printable encode overly long lines 2009-05-08 18:30:44 +02:00
manifest.py drop unused imports 2009-05-14 15:35:46 +02:00
match.py match: fold match into _match base class 2009-05-24 02:56:22 -05:00
mdiff.py separate import lines from mercurial and general python modules 2009-04-28 17:40:46 +02:00
merge.py merge: give hint as to how to discover uncommitted changes 2009-05-22 11:42:21 -05:00
mpatch.c allow Mercurial to compile on Haiku 2008-09-17 10:22:35 +02:00
node.py put license and copyright info into comment blocks 2009-04-26 01:13:08 +02:00
osutil.c Windows: improve performance via buffered I/O 2009-05-08 15:52:26 -07:00
parsers.c Some additional space/tab cleanups 2008-10-20 15:19:05 +02:00
patch.py use 'x is None' instead of 'x == None' 2009-05-20 00:52:46 +02:00
posix.py separate import lines from mercurial and general python modules 2009-04-28 17:40:46 +02:00
repair.py repair: bulk update sets 2009-05-17 16:55:51 +02:00
repo.py updated license to be explicit about GPL version 2 2009-04-26 01:08:54 +02:00
revlog.py revlog: fix reading of larger revlog indices on Windows 2009-05-23 11:53:23 -05:00
simplemerge.py separate import lines from mercurial and general python modules 2009-04-28 17:40:46 +02:00
sshrepo.py named branches: client branchmap wire protocol support (issue736) 2009-05-23 17:03:51 +02:00
sshserver.py named branches: server branchmap wire protocol support (issue736) 2009-05-23 17:02:49 +02:00
statichttprepo.py updated license to be explicit about GPL version 2 2009-04-26 01:08:54 +02:00
store.py filelog encoding: move the encoding/decoding into store 2009-05-20 18:35:47 +02:00
streamclone.py filelog encoding: move the encoding/decoding into store 2009-05-20 18:35:47 +02:00
strutil.py updated license to be explicit about GPL version 2 2009-04-26 01:08:54 +02:00
templatefilters.py drop unused imports 2009-05-14 15:35:46 +02:00
templater.py templater: lowercase error message 2009-05-17 16:25:48 +02:00
transaction.py transaction: add atomic groups to transaction logic 2009-05-11 21:12:40 +02:00
ui.py ui: honor interactive=off even if isatty() 2009-05-21 20:59:36 +02:00
url.py url: use CONNECT for HTTPS connections through HTTP proxy (issue967) 2009-05-22 08:56:43 +02:00
util.py match: move util match functions over 2009-05-24 02:56:14 -05:00
verify.py verify: use set instead of dict 2009-05-17 04:14:15 +02:00
win32.py posixfile: remove posixfile_nt and fix import bug in windows.py 2009-05-13 21:36:16 +02:00
windows.py windows: make openhardlinks work 2009-05-23 19:57:25 +02:00