cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: FW: Help

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 25 Oct 2001 20:32:06 +0200 (MET DST)

On Thu, 25 Oct 2001 Tang_Jasmine_at_emc.com wrote:

(Cc'ed back to the curl mailing list, please post follow-ups on the list.)

> 1) curl was compiled and configured for PHP on my UNIX based web
> server...Does curl need to be on the window client?

If you wanna download *from* a PC, then you need to have curl on that PC and
run it there. If the PC runs a FTP server, you could upload the file *to* the
PC from the unix server.

Downloading and installing curl on the PC is very easy and quickly done.

> 2) How does the client know the path/location of the file(s) on the web
> server?

I can't tell you that. You need to figure out that since you know the server.
It depends on the server's config. Many servers let users have a
'public_html' directory in their home dir that appears as "site/~user" from
the outside to allow personal homepages etc. You might too.

> 3) Can you use the "file://" to transfer files?

You _can_, but that is usually rather silly since you can just as well just
use 'copy' on the NT machine or 'cp' on the unix machine. file:// only reads
files from a path on a local machine(*).

(*) = yes yes, let's not get into technicalities now if the local machine
      uses network based file systems and similar...

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2001-10-25