For future reference: hg (and thus sysupdate) simply ignores $httpproxy variable, it honors $http_proxy instead. Thus if you are using plan9 behind a proxy you need to set
term% httpproxy=http://proxy.hostname:port # (don't forget "http://"!) term% http_proxy=proxy.hostname:port Once it works, you can add it at the beginning of your lib/profile. Note that, strangely enough, hg ignores the .hgrc in your home directory. The hgrc(8) speak about Unix (and Windows) but since GNU is Not U... ehm... Plan9 is not Unix (:-D), I can't say where to write it. Giacomo 2015-02-13 10:59 GMT+01:00 Giacomo Tesio <[email protected]>: > Ok fixed. The problem was plain stupid: I did not prepended "http://" > to httpproxy, setting it to just proxy:port. > > However, I noted that webfs -d option is not documented. Nor is the > need to prepend http:// to httpproxy (I suppose however that this > could be taken as default). > Whenever I'll find my way to acme and plan9 I'll send you a patch... > > > Thanks you all for your help! > > > Giacomo > > > 2015-02-13 10:11 GMT+01:00 <[email protected]>: >> heres how it should look like (tuttle.9hal:8888 is my proxy servr): >> >> term% httpproxy=http://tuttle.9hal:8888 webfs -d; hget http://google.com >> clientctl: url http://google.com >> http(0): GET http://google.com/ >> hdial [1] tcp!tuttle.9hal!8888 >> -> GET http://google.com/ HTTP/1.1 >> Host: google.com >> User-Agent: Mozilla/5.0 (compatible; hjdicks) >> Connection: keep-alive >> Referer: http://google.com/ >> Accept: */* >> >> <- HTTP/1.1 302 Found >> >> -- >> cinap >>
