cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: help with ftp error return code

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 21 Feb 2002 21:48:48 +0100 (MET)

On Thu, 21 Feb 2002, Wenjie Hua wrote:

> I am trying to ftp upload files to MVS host. If I want to Stor a file to
> the dataset in the format of "root.user.name", what should the "url" option
> format like in: curl_easy_setopt(curl,CURLOPT_URL, url);
>
> can I set url = "ftp://host/root.user.name" , in this case is it going to
> put file to the absolute path 'root.user"? If not, how can I make it an
> absolute one?

Use two slashes after the host name.

 ftp://host/blabla

Means the remote file named 'blabla'. While:

 ftp://host//blabla

means the remote file named '/blabla'

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-02-21