cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: test200

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 6 Aug 2003 08:19:53 +0200 (CEST)

On Tue, 5 Aug 2003, David Byron wrote:

> $ ./curl -v file://c:/src/cobra/curl/tests/log/test200.txt
>
> by the time I get to Curl_file_connect,
>
> conn->path is /src/cobra/curl/tests/log/test200.txt
>
> After reading RFC 1738 (section 3.10 of
> http://www.rfc-editor.org/rfc/rfc1738.txt), it appears the above URL may not
> be right.

Right, it misses one slash after the initial file:.

> Is file://localhost/c:/src/cobra/curl/tests/log/test200.txt or perhaps
> file:///c:/src/cobra/curl/tests/log/test200.txt
>
> more correct?

Both of these are fine. The host name part of the file:// URLs are always just
stripped by the code in url.c.

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Received on 2003-08-06