9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Giacomo Tesio <giacomo@tesio.it>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>,
	9front@9front.org
Subject: Re: [9fans] telnet to port (and webfs debug))
Date: Fri, 13 Feb 2015 12:30:14 +0100	[thread overview]
Message-ID: <CAHL7psG2iXX+ntxG16aXhAvGiTRFS-brHpdc=nRYt06aSsurUg@mail.gmail.com> (raw)

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 <giacomo@tesio.it>:
> 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  <cinap_lenrek@felloff.net>:
>> 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
>>



             reply	other threads:[~2015-02-13 11:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-13 11:30 Giacomo Tesio [this message]
2015-02-13 11:54 ` cinap_lenrek
2015-02-13 11:59 ` cinap_lenrek
2015-02-13 17:21   ` Steven Stallion
2015-02-13 17:33     ` erik quanstrom
2015-02-13 17:29 ` Steven Stallion
  -- strict thread matches above, loose matches on Subject: below --
2015-02-12 11:02 [9fans] telnet to port (and webfs debug) Giacomo Tesio
2015-02-12 11:57 ` lucio
2015-02-12 12:07 ` Quintile
2015-02-12 12:46   ` Giacomo Tesio
2015-02-12 16:27 ` cinap_lenrek
2015-02-13  8:50   ` Giacomo Tesio
2015-02-13  9:11     ` cinap_lenrek
2015-02-13  9:59       ` Giacomo Tesio
2015-02-13 14:13       ` erik quanstrom
2015-02-13 15:23         ` Charles Forsyth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHL7psG2iXX+ntxG16aXhAvGiTRFS-brHpdc=nRYt06aSsurUg@mail.gmail.com' \
    --to=giacomo@tesio.it \
    --cc=9fans@9fans.net \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).