Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[9fans] alternative port with webfs?

7 views
Skip to first unread message

Mathieu

unread,
Mar 15, 2009, 7:22:07 PM3/15/09
to
Hi all,

I'm working on something that will use http requests so I figured using
webfs instead of reinventing the wheel might be a good idea, even though
I've been hinted on #plan9 that it's far from perfect.
My first try was to duplicate some code from /sys/src/cmd/webfs/webget.c
and it seemed that I couldn't get a reply from a server
listening on a port other than 80, using that syntax for the url:
http://host:port/path. Then I tried the same thing with webfsget
and I also got a 'Connection refused'.
I've just had a quick peak in /sys/src/cmd/webfs/url.c and looking at
the comments it seems that this kind of syntax for the url should be
directly supported when writing it to webfs. Haven't looked yet at the
code though.
So am I missing something, or is it just not implemented yet?

Cheers,
Mathieu


Gorka Guardiola

unread,
Mar 15, 2009, 8:43:43 PM3/15/09
to
On Mon, Mar 16, 2009 at 12:18 AM, Mathieu <leja...@gmail.com> wrote:
> Hi all,
>
> I'm working on something that will use http requests so I figured using
> webfs instead of reinventing the wheel might be a good idea, even though
> I've been hinted on #plan9 that it's far from perfect.
> My first try was to duplicate some code from /sys/src/cmd/webfs/webget.c
> and it seemed that I couldn't get a reply from a server
> listening on a port other than 80, using that syntax for the url:
> http://host:port/path. Then I tried the same thing with webfsget
> and I also got a 'Connection refused'.

I patched this a little bit and seems to work for me. ¿Do you
have the latest version?.

--
- curiosity sKilled the cat

Mathieu

unread,
Mar 15, 2009, 9:25:03 PM3/15/09
to
Ah it seems the tree I was using for 9vx was a bit old indeed. I've
just pulled the latest webfs from sources and it's working fine now,
thanks a lot.

Cheers,
Mathieu

0 new messages