This error makes me crazy, googled a lot and found no solutions.
First, I got no error while mounting the ftp server but then after try to access e.g with LS I got:
ls: reading directory /mnt/USB-Raid/: Input/output error
Here is my fstab entry:
curlftpfs#SERVER-NAME:PORT/PATH/mnt/USB-Raid/ fuse ssl,allow_other,rw,user,noauto,direct_io,uid=root 0 0
To analyse the problem I added the debug parameter and voila.. it works.
Now here my working entry:
curlftpfs#SERVER-NAME:PORT/PATH/mnt/USB-Raid/ fuse ssl,allow_other,rw,user,noauto,debug,direct_io,uid=root 0 0
To mount it in a script, you have to dev/null the debug infos:
/usr/bin/nohup /bin/mount /mnt/USB-Raid > /dev/null 2>&1 &
Hope this helps someone.