cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: need help with ftp options

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 5 Aug 2003 00:05:53 +0200 (CEST)

On Mon, 4 Aug 2003, Steven R. Shourds wrote:

> Ok, so now I want to send a file in and they want me to do the following.
>
> PUT (local-file-name) %MISGTEST%%%b

Hm. Are you sure that the client is supposed to actually use that in the
protocol?

Many interactive FTP client programs supports 'put' as a command to upload a
file to the remote site. 'put' is the command that then translates into a STOR
when speaking ftp protocol.

This, that command is the same as uploading "(local-file-name)" to the remote
file name "%MISGTEST%%%b".

You can do that already with curl.

PUT is not an existing FTP protocol instruction (in RFC959 or any other
official or semi-offical FTP document I'm aware of).

> It appears the cURL is using a STOR command. How do we change that to PUT
> and then have the parameters to the right of the file name?
>
> Is there anyway to do this?

curl does not currently support this kind of operation and I strongly suspect
that this isn't what you need, as explained above.

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Received on 2003-08-05