cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: patch to make drive letters work in file:// urls under Windows

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 7 Aug 2003 13:15:40 -0700

On Thu, Aug 07, 2003 at 10:49:19PM +0300, Ufuk Kayserilioglu wrote:
>
> Sorry I realized, just after I sent the mail out, that I should also
> test the output of cURL with the same set. Here they are:
>
> [1] file://c:/test.txt
> [2] file:///c:/test.txt
> [3] file://localhost/c:/test.txt
> [4] file://localhost//c:/test.txt
> [5] file://c:/test dir/test.txt
> [6] file:///c:/test%20dir/test.txt
> [7] file://c:/test%20dir/test.txt
>
> cURL:
>
> [1] OK
> [2] Fails (curl: (37) Couldn't open file /c:/test.txt)
> [3] Fails (curl: (37) Couldn't open file /c:/test.txt)
> [4] Fails (curl: (37) Couldn't open file /c:/test.txt)
> [5] OK
> [6] Fails (curl: (37) Couldn't open file /c:/test%20dir/test.txt)
> [7] OK

Are you sure the results of [1], [5] and [7] are from accessing drive C:
explicitly? I wouldn't be surprised if in those cases the drive letter is
ignored and the current drive is used. Also, it would be interesting to see
the results of testing file:c:/test.txt

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
-------------------------------------------------------
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-07