cURL / Mailing Lists / curl-library / Single Mail


avoid sending USER if empty

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


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 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.


List admin:
Received on 2011-02-25