curl-library
ftp SIZE command and ASCII/BINARY mode
From: Max Katsev <mkatsev_at_gmail.com>
Date: Fri, 21 Sep 2007 21:20:28 +0300
Date: Fri, 21 Sep 2007 21:20:28 +0300
Hello!
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
mode"
What I do now is setting TYPE using CURLOPT_QUOTE. Is there a better way?
Thanks
Received on 2007-09-21