cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Local files

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 9 Apr 2003 14:01:02 +0200 (CEST)

On Wed, 9 Apr 2003, Sigal Algranaty wrote:

> Does cUrl know how to download local files?

Yes it does.

> If I put D:\pic.jpg instead of a url, would it work, or should I add a curl
> option?

That would not be a legal URL. A URL identifying a local file should be
prefixed with file:// and that file name would be something like this:

        file:///d:/pic.jpg

(I can't recall the exact details off the top of my head.)

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-04-09