cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Problems with file://

From: Lars J. Aas <larsa_at_sim.no>
Date: Wed, 13 Sep 2000 17:16:09 +0200

On Wed, Sep 13, 2000 at 05:05:35PM +0200, Daniel Stenberg wrote:
: On Wed, 13 Sep 2000, Lars J. Aas wrote:
: > Anyways, the important thing is to remember that it is an URL, and all
: > URLs have hostname before pathname - "forgetting" it is a mistake and
: > should not work.
:
: No, 'file:///tmp/foo' is a valid URL. This format is also very commonly used
: by browsers so even if it wouldn't be correct according to the standards,
: curl would have to support it just because the browsers do.

I was thinking of the incorrect case where only two slashes followed file:,
given by someone earlier in this thread. An empty hostname-field should of
course be interpreted as the local host to make things easy...

  Lars J
Received on 2000-09-13