ftp SIZE command and ASCII/BINARY mode
Date: Fri, 21 Sep 2007 21:20:28 +0300
I try to find out file size on ftp. I set CURLOPT_NOBODY to 1, curl
makes SIZE request, but it doesn't set transfer mode. For my server
default mode is ASCII and it replies "550 SIZE not allowed in ASCII
What I do now is setting TYPE using CURLOPT_QUOTE. Is there a better way?
Received on 2007-09-21