cURL / Mailing Lists / curl-library / Single Mail


[ curl-Bugs-986576 ] --request / -X not recognized with ftp url

From: <>
Date: Wed, 07 Jul 2004 06:21:49 -0700

Bugs item #986576, was opened at 2004-07-07 06:21
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Category: ftp
Group: bad behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: --request / -X not recognized with ftp url

Initial Comment:
curl 7.12.0 (i386-pc-win32) libcurl/7.12.0 zlib/1.2.1
Protocols: ftp gopher telnet dict ldap http file
Features: libz


I'm trying to rename a file before downloading it.
I thought that -X (or --request) will allow me to rename
the file before getting it, but the -X in the following
command return
curl: (19) Syntax error, Command not recognized.

.\curl -X ls -u xxx:xxx ftp://host/dir/
.\curl --request ls -u xxx:xxx ftp://host/dir/

I ultimatly want to :
.\curl -X "ren a.txt a_old.txt" -u xxx:xxx ftp://host/dir/
.\curl -u xxx:xxx ftp://host/dir/a_old.txt



You can respond by visiting:
Received on 2004-07-07