cURL / Mailing Lists / curl-library / Single Mail

curl-library

avoid sending USER if empty

From: Vojtech Fried <vfried_at_opentext.com>
Date: Fri, 25 Feb 2011 13:52:36 +0000

Hi,

Is there any option to change the way libcurl handles ftp USER command? As I understand it, if I don't tell libcurl the username, it defaults to sending "anonymous". If I use empty string as a username, libcurl sends empty username as a argument for USER command. This does not work for me, because my ftpserver (pyftpdlib http://code.google.com/p/pyftpdlib/) be default returns "501 Syntax error: command needs an argument." And libcurl ends because login failed. I am not sure how common this is among ftpservers.
What I would like is to avoid sending USER command if the username is empty. I can configure the ftpserver not to require a user login.

Vojtech

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-02-25