cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Using the FILE protocol

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sat, 25 Jun 2005 18:42:32 -0700

On Sat, Jun 25, 2005 at 08:26:25PM +0800, Merlin the Wizard wrote:
> Dan, you had been able to get both to work under a Windows environment?! I
> must have typed something wrong, because the only time I got the file
> protocol to work is when I map a drive. Which version of curl are you
> using, what options did you set and what Windows environment are you trying
> with? Workgroup? NT4 domains? W2K/W2K3 AD domains?

curl 7.13.2 on Win2000 with AD domains.

> I tried using :
>
> curl -C - -O "file://server/sharedrive/folders/file", and several
> other combinations
>
> but I could not get it to work with shares or hidden shares.

Try: "file:\\server\sharedrive\folders\file" as the URL.
curl just passes the whole URL (minus the file:) to the OS in this case,
so it's treated the same as if you had entered
copy "\\server\sharedrive\folders\file" . at the command-line.
Is -C supported for file: URLs? I would expect so, but if you're still having
trouble, try dropping it.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2005-06-26