cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

Re: Drive letter handling in file:// URLs - Win32

From: Claes Jakobsson <claes_at_versed.se>
Date: Thu, 5 Nov 2009 09:48:44 +0100

On 5 nov 2009, at 01.10, Joshua Kwan wrote:
> Hey guys.
>
> On Win32, it seems like file:// URLs containing drive letters don't
> work right (current CVS source.)
>
> When I specify file://C:/blah.txt as a URL, the 'C:' is actually
> stripped away because url.c (ParseURLAndFillConnection) thinks that
> the C: is a hostname. I think we need to special case it as such:

You're specifying your URL wrong. The schema for file:// URLs is
file://<host>/<path> so what you need either

file:///C:/...

or

file://localhost/C:/...

If those doesn't work then cURL is doing something wrong.

Cheers,
Claes
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-05

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET