aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
AgeCommit message (Collapse)Author
2005-04-05Christophe Legry's fix to grok time-conditoned uploadsDaniel Stenberg
2005-03-29When doing FTP-SSL, advance to the next state properly when the response toDaniel Stenberg
AUTH has been received successfully.
2005-03-29Fixed the FTP response reader function to properly deal with responses splitDaniel Stenberg
up in several chunks when read.
2005-03-15Fixed ftp support with uClibc due to differing inet_ntoa_r() behaviour.Dan Fandrich
2005-03-14silence compiler warnings for mingw win32 builds --enable-debugDaniel Stenberg
2005-03-14Removed security.h since it shadows an include file mingw needs when buildingDaniel Stenberg
for SSPI support. The contents of the file has been moved into the krb4.h file.
2005-03-08Dominick Meglio reported that using CURLOPT_FILETIME when transferring a FTPDaniel Stenberg
file got a Last-Modified: header written to the data stream, corrupting the actual data. This was because some conditions from the previous FTP code was not properly brought into the new FTP code. I fixed and I added test case 520 to verify. (This bug was introduced in 7.13.1)
2005-03-04Added test case 235 that makes a resumed upload of a file that isn't presentDaniel Stenberg
on the remote side. This then converts the operation to an ordinary STOR upload. This was requested/pointed out by Ignacio Vazquez-Abrams. It also proved (and I fixed) a bug in the newly rewritten ftp code (and present in the 7.13.1 release) when trying to resume an upload and the servers returns an error to the SIZE command. libcurl then loops and sends SIZE commands infinitely.
2005-02-11Fixed bad krb4 code. It always tried to use krb4 if built enabled.Daniel Stenberg
2005-02-11Removed all uses of strftime() since it uses the localised version of theDaniel Stenberg
week day names and month names and servers don't like that.
2005-02-10typecast assign to ftpport from int to prevent warningsDaniel Stenberg
2005-02-09Use CURL_SOCKET_BAD.Gisle Vanem
2005-02-09Handle CURLE_LOGIN_DENIED in strerror.c.Gisle Vanem
For ftp only?
2005-02-09FD_SET can be big macro, use bracesDaniel Stenberg
2005-02-09FTP code turned into state machine. Not completely yet, but a good start.Daniel Stenberg
The tag 'before_ftp_statemachine' was set just before this commit in case of future need.
2005-02-08Don't free too much in freedirs() if realloc() fails.Gisle Vanem
2005-02-04Eric Vergnaud found a use of an uninitialized variableDaniel Stenberg
2005-01-29conn->ip_addr MUST NOT be used on re-used connectionsDaniel Stenberg
2005-01-28Stephen More pointed out that CURLOPT_FTPPORT and the -P option didn't workDaniel Stenberg
when built ipv6-enabled. I've now made a fix for it. Writing test cases for custom port strings turned too tricky so unfortunately there's none.
2005-01-25Ian Ford asked about support for the FTP command ACCT, and I discovered it isDaniel Stenberg
present in RFC959... so now (lib)curl supports it as well. --ftp-account and CURLOPT_FTP_ACCOUNT set the account string. (The server may ask for an account string after PASS have been sent away. The client responds with "ACCT [account string]".) Added test case 228 and 229 to verify the functionality. Updated the test FTP server to support ACCT somewhat.
2005-01-21FTP third transfer support overhaul. See CHANGES for details.Daniel Stenberg
2005-01-19Stephan Bergmann made libcurl return CURLE_URL_MALFORMAT if an FTP URLDaniel Stenberg
contains %0a or %0d in the user, password or CWD parts. (A future fix would include doing it for %00 as well - see KNOWN_BUGS for details.) Test case 225 and 226 were added to verify this
2004-12-17avoid an extra mallocDaniel Stenberg
2004-12-17fixed minor memory leak when running out of memoryDaniel Stenberg
2004-12-17oops, add missing return keywordDaniel Stenberg
2004-12-16Based on Gisle Vanem's patch: make sure the directory re-use works even whenDaniel Stenberg
a URL-encoded path is used.
2004-12-16reduced the number of sub-blocksDaniel Stenberg
2004-12-15Make some arrays of pointers const, too.Dan Fandrich
2004-12-11modified to use the current error code name, not the obsolete oneDaniel Stenberg
2004-12-07CURLFTPSSL_ALL should make sure that the transfer fails if the data connectionDaniel Stenberg
isn't set to encrypted properly
2004-12-05Richard Atterer fixed libcurl's way of dealing with the EPSVDaniel Stenberg
response. Previously, libcurl would re-resolve the host name with the new port number and attempt to connect to that, while it should use the IP from the control channel. This bug made it hard to EPSV from an FTP server with multiple IP addresses!
2004-11-29As reported in Mandrake's bug tracker bug 12285Daniel Stenberg
(http://qa.mandrakesoft.com/show_bug.cgi?id=12285), when connecting to an IPv6 host with FTP, --disable-epsv (or --disable-eprt) effectively disables the ability to transfer a file. Now, when connected to an FTP server with IPv6, these FTP commands can't be disabled even if asked to with the available libcurl options.
2004-11-27typecast the coversion from long to intDaniel Stenberg
2004-11-26removed no longer used variableDaniel Stenberg
2004-11-25FTP improvements:Daniel Stenberg
If EPSV, EPRT or LPRT is tried and doesn't work, it will not be retried on the same server again even if a following request is made using a persistent connection. If a second request is made to a server, requesting a file from the same directory as the previous request operated on, libcurl will no longer make that long series of CWD commands just to end up on the same spot. Note that this is only for *exactly* the same dir. There is still room for improvements to optimize the CWD-sending when the dirs are only slightly different. Added test 210, 211 and 212 to verify these changes. Had to improve the test script too and added a new primitive to the test file format.
2004-11-19David Phillips' FD_SETSIZE fixDaniel Stenberg
2004-11-02Paul Nolan fix to make libcurl build nicely on Windows CEDaniel Stenberg
2004-10-21Dan Fandrich's better ifdef for include fixDaniel Stenberg
2004-10-16Alexander Krasnostavsky made the CURLOPT_FTP_CREATE_MISSING_DIRS option workDaniel Stenberg
fine even for third party transfers.
2004-10-06removed tabs and trailing whitespace from sourceDaniel Stenberg
2004-10-01Aleksandar Milivojevic reported a problem in the Redhat bugzilla (seeDaniel Stenberg
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=134133) and not to anyone involved in the curl project! This happens when you try to curl a file from a proftpd site using SSL. It seems proftpd sends a somewhat unorthodox PASS response code (232 instead of 230). I relaxed the response code check to deal with this and similar cases.
2004-09-29Fixed an error message: we use CWD, we don't cd into dirs with FTPDaniel Stenberg
2004-09-16Added CURLOPT_FTPSSLAUTHDaniel Stenberg
2004-09-13revert the change for the new date parser, as the new one can deal withDaniel Stenberg
the old format now
2004-09-11Minor adjustment needed for the new date parser to succeed. ifdef'ed outDaniel Stenberg
for now.
2004-08-11include the server response in the error message when an FTP server givesDaniel Stenberg
back a 530 after the password is provided, as it isn't necessary because of a bad user name or password.
2004-08-10more typecasts to please picky compilersDaniel Stenberg
2004-07-04make sure the 3rd argument passed to bind() is a socklen_tDaniel Stenberg
2004-07-04typecast the conversion from long to int to prevent picky compiler warningsDaniel Stenberg
2004-07-01variable type cleanup to fix picky compiler warningsDaniel Stenberg