mercurial beginner HTTPS trouble
Chris Morgan
cm at mihalis.net
Thu Dec 20 15:38:31 UTC 2007
Hi,
I set up a mercurial repository for testing on a spare Linux machine
at home and am able to browse a scratch repository and also to clone
it using the same HTTP URL. I was pretty excited... am evaluating
Mercurial for use at my day job at a large financial data firm. I'm
not an expert sysadmin, and also new to mercurial, apologies in
advance if this is a FAQ (if so I was unable to find it).
Testing from work, where I have to go via a proxy server to get to the
internet, I can still browse, but hg clone fails with "abort: HTTP
Error 400: Bad Request".
I confirmed this error doesn't come from my server, so it must be from
the proxy in the middle.
Talking to the network admins, they traced my failing transaction and
here are their comments :
"
Chris and I did a capture. The problem stems from this:
GET https://XXX.XXX.XXXt/hg/?cmd=heads HTTP/1.1
Accept-Encoding: identity
Host: XXX.XXX.XXX
User-agent: mercurial/proto-1.0
HTTP/1.1 400 Bad Request
The GET is asking for an HTTPS URL (note the S). HTTPS URLs are supposed to be
access using CONNECT, not GET, with the client coftware itself doing the SSL.
I believe this is the cause of the problem.
"
I blanked out my hostname (the XXX.XXX.XXX) as I haven't taken any
security precautions on that machine, however I'd be happy to share
them. The code stored in the repository is not particularly sensitive.
So my question is : is this a configuration error on my part? Is the
HTTPS verb used by hg configurable? I didn't see something that
relates to this in the HGRC man page, but perhaps I missed it.
Thanks in advance
Chris Morgan
More information about the Mercurial
mailing list