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
--- Begin Message ---
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?
--- End Message ---