9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] telnet to port (and webfs debug))
@ 2015-02-13 11:30 Giacomo Tesio
  2015-02-13 11:54 ` cinap_lenrek
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Giacomo Tesio @ 2015-02-13 11:30 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs, 9front

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
>>



^ permalink raw reply	[flat|nested] 16+ messages in thread
* [9fans] telnet to port (and webfs debug)
@ 2015-02-12 11:02 Giacomo Tesio
  2015-02-12 11:57 ` lucio
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Giacomo Tesio @ 2015-02-12 11:02 UTC (permalink / raw)
  To: 9front, Fans of the OS Plan 9 from Bell Labs

Hi, I'm having an hard time to debug a problem with http clients in
plan9/qemu (actually 9front, but I guess my questions apply to all
plan9 versions).

DNS and ping works properly, just http fails.

I suspect it's a proxy issue. I have set httpproxy environment
variable but with no success: both hget and mothra doesn't works.

I can connect to the qemu host webserver on port 80 and receive the
proper page, but for any other address I can't obtain a response.

The proxy does not log any access.

Now, to debug this issue, I'd like to telnet the proxy port and
manually forge an http request.

However I can't understand hot to specify a port reading man telnet.

What's plan9 equivalent of

   telnet www.google.com 80



Giacomo



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-02-13 17:33 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-13 11:30 [9fans] telnet to port (and webfs debug)) Giacomo Tesio
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

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).