login
Header Space

 
 

Re: Fwd: [OT] Re: Git via a proxy server?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Sam Song <samlinuxkernel@...>
Cc: <git@...>
Date: Tuesday, May 16, 2006 - 9:11 am

Sam Song wrote:

Yes.  Try running 'socket 192.168.40.99 80', and type
CONNECT 204.152.191.37:9418 HTTP/1.0
Proxy-Authorization: Basic <yoursecret,f.e.wget -d should reveal this to you>
<empty line>

You should get back user readable diagnostics what went wrong.  Yes, your admin 
must allow CONNECT method for target port 9418.


Is $GIT_PROXY_COMMAND executable? (just in case...)  Try 'strace -f git clone 
...', it should tell you what's going on.


What is '<um>' and '<pwd>' ?  socket just connects somewhere, so if you are 
supposed to use <username>:<pwd> to connect to your proxy, you must add 
Proxy-Authorization header yourself:

(echo "CONNECT $1:$2 HTTP/1.0";
  echo "Proxy-Authorization: Basic <base64encoded um:pwd>";
  echo;
  cat ) | socket 192.168.40.99 80 | (read a; read a; cat)

Best to test this is to start 'socket 192.168.40.99 80' from command line and 
then type these two lines above, plus one empty line.  You should get back '200 
OK', empty line, and then you can start communicating using git protocol - if 
you can do that...


As far as I can tell, http_proxy is ignored (Debian's git 1.3.2-1/cogito 0.17.2-1).
								Petr
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Fwd: [OT] Re: Git via a proxy server?, Sam Song, (Tue May 16, 8:13 am)
Re: Fwd: [OT] Re: Git via a proxy server?, Petr Vandrovec, (Tue May 16, 9:11 am)
Re: Fwd: [OT] Re: Git via a proxy server?, Sam Song, (Tue May 16, 11:56 pm)
Re: Fwd: [OT] Re: Git via a proxy server?, Jan-Benedict Glaw, (Wed May 17, 4:38 am)
Re: Fwd: [OT] Re: Git via a proxy server?, Petr Vandrovec, (Wed May 17, 6:54 am)
Re: Fwd: [OT] Re: Git via a proxy server?, Sam Song, (Wed May 17, 11:44 pm)
Re: Fwd: [OT] Re: Git via a proxy server?, Jan-Benedict Glaw, (Thu May 18, 4:31 am)
speck-geostationary