From: uriel@cat-v.org
To: 9fans@cse.psu.edu
Subject: Re: [9fans] webfsget
Date: Sat, 15 Jul 2006 05:10:36 +0200 [thread overview]
Message-ID: <8a4201c1cf1adb577934ad13bddcc2ed@cat-v.org> (raw)
In-Reply-To: <e71492cfda3846929101b864896b3da2@quanstro.net>
I wonder if webfs should handle relative URLs at all. It adds a lot
of complexity and I can't see any good use for it. I suspect the idea
was to avoid other apps having to know how to parse and merge URLs,
but in practice a web browser needs to know how to do that stuff
anyway.
Did you find a good use for this feature?
Thanks
uriel - Führer der Dissident Plan 9 IRC Kids
> that is what's intended. the base url is
> http://swtch.com/~rsc/
> the relative url is
> rsc-small.jpg
> thus
> webfsget -b $base $url
>
> i've attached a proposed fix. it appears (unless i'm reading the source
> incorrectly) that webfs didn't do relative urls unless they' were plumbed.
>
> - erik
>
> On Fri Jul 14 20:59:14 CDT 2006, cross@math.psu.edu wrote:
>> On Fri, Jul 14, 2006 at 07:27:25PM -0500, erik quanstrom wrote:
>> > is there something obvious wrong with this?
>> >
>> > webfsget -b http://swtch.com/~rsc/ rsc-small.jpg
>> > webfsget: get ctl write: parseurl: relative URI given without base
>>
>> Other than the space before the filename in the URL?
>>
>> - Dan C.
next prev parent reply other threads:[~2006-07-15 3:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-15 0:27 erik quanstrom
2006-07-15 1:58 ` Dan Cross
2006-07-15 1:54 ` erik quanstrom
2006-07-15 3:10 ` uriel [this message]
2006-07-15 3:08 ` erik quanstrom
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=8a4201c1cf1adb577934ad13bddcc2ed@cat-v.org \
--to=uriel@cat-v.org \
--cc=9fans@cse.psu.edu \
/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).