9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Ingo Krabbe <ikrabbe.ask@gmail.com>
To: <9fans@9fans.net>
Subject: Re: [9fans] Using webfs from rc
Date: Mon, 14 Jul 2014 14:27:42 +0200	[thread overview]
Message-ID: <d1653d4f8ba9520bfb2ab9adc47483e0@krabbe.dyndns.org> (raw)
In-Reply-To: <CAGMcHPqbh-mnTYbzP90fLDAERiHW=-iUocfohi8ZS=Xj_Ee+WQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 626 bytes --]

Hey riddler,

that has something to do with the way how you open the connection.

I'm not 100% sure if its a perfect description what happens, but when you

> % echo -n url http://www.google.co.uk > ctl

the >ctl will open and close the connection to 0/ctl. But you can read the body only while the 0/ctl device is open. (Or it might be differnet that you need to open body for reading before you open and send to ctl).

Best is to check the code of hget to understand how this works.

I'm not sure if it's possible or in any way convenient to use webfs through rc. I think hget is your friend.

cheers

ingo

[-- Attachment #2: Type: message/rfc822, Size: 5254 bytes --]

From: Riddler <riddler876@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] Using webfs from rc
Date: Mon, 14 Jul 2014 13:08:49 +0100
Message-ID: <CAGMcHPqbh-mnTYbzP90fLDAERiHW=-iUocfohi8ZS=Xj_Ee+WQ@mail.gmail.com>

Hey guys,

Been toying with webfs/abaco and I'm attempting to try to use it
(webfs) from rc without much luck.

I've been doing the following:
% cat clone
    0
    acceptcookies on
    sendcookies on
    redirectlimit 10
    useragent webfs/2.0 (plan 9)
% cd 0
% echo -n url http://www.google.co.uk > ctl
% cat body
    cat: can't open body: 'body' url is not yet set

I'm unsure why this doesn't seem to be working. I took a look at the
abaco source and it looks like this is all it does as well when POST
data is not involved.

I've tried various forms of url with trailing slashes and pages I know
result in content but still nothing.

Any idea where I'm going wrong?

  reply	other threads:[~2014-07-14 12:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-14 12:08 Riddler
2014-07-14 12:27 ` Ingo Krabbe [this message]
2014-07-14 15:08   ` Stanley Lieber
2014-07-14 16:02   ` erik quanstrom
2014-07-14 16:56     ` Riddler

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=d1653d4f8ba9520bfb2ab9adc47483e0@krabbe.dyndns.org \
    --to=ikrabbe.ask@gmail.com \
    --cc=9fans@9fans.net \
    /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).