aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
AgeCommit message (Collapse)Author
2002-12-09The fread() callback pointer and associated pointer is now stored in theDaniel Stenberg
connectdata struct instead, and is no longer modified within the 'set' struct as previously (which was a really BAAAD thing).
2002-12-04The waiting for the 226 or 250 line expected to come after a transfer isDaniel Stenberg
complete is now only made for 60 seconds and if no data was received during those 60 seconds, we store a special error message (preparing to make this a special error code) as this most likely means that the control connection has died while we were transferring data.
2002-12-03Curl_GetFTPResponse() takes a different set of parameters and now return aDaniel Stenberg
proper CURLcode. The default timeout for reading one response is now also possible to change while running.
2002-12-02if the PWD reply parser failed, we leaked memoryDaniel Stenberg
2002-11-11moved the bools in the connectdata struct into the substruct namedDaniel Stenberg
ConnectBits where the other bools already are
2002-11-11unlock dns cache entries with a function call instead of a variable fiddleDaniel Stenberg
2002-11-05ipv4-fixes for the new Curl_dns_entry struct and Curl_resolv() protoDaniel Stenberg
2002-11-05Curl_resolv() now returns a different struct, and it contains a referenceDaniel Stenberg
counter so that the caller needs to decrease that counter when done with the returned data. If compiled with MALLOCDEBUG I've added some extra checking that the counter is decreased before a handle is closed etc.
2002-10-28prevent compiler warningsDaniel Stenberg
2002-09-20Craig Markwardt made the "struct hostent_data" get cleared too, as isDaniel Stenberg
needed on Tru64 (or something).
2002-09-03updated source code boilerplate/headerDaniel Stenberg
2002-08-26SSL_INSECURE support and usage addedDaniel Stenberg
2002-08-26don't attempt to ftp_cwd() on a NULL pathDaniel Stenberg
2002-08-12Initial fix to make the multi interface return control while waiting forDaniel Stenberg
the initial connect to "come through". This should work fine for connect and for FTP-PASV connects. Needs massive testing.
2002-08-01corrected some warningsDaniel Stenberg
2002-08-01Changed the PORT command to pick a better default IP address if "-" is used.Daniel Stenberg
It now uses the local IP adress of the control connection.
2002-06-14Remade the FTP not-check status line and not-attempt-to-read-status-lineDaniel Stenberg
variables, conditions and things.
2002-06-13Tom Mattison's report found out, and this is the fix that should preventDaniel Stenberg
FTP from closing the connections a little too often!
2002-06-13Added 'dont_check' to be set during an FTP operation if the final statusDaniel Stenberg
message is supposed to be ignored.
2002-06-12when no FTP transfer was done, don't attempt to read the download transferDaniel Stenberg
thing. The 'resumed' flag is also causing confusions. I'll deal with that tomorrow.
2002-06-12kris@freebsd.org fixed a few bad format stringsDaniel Stenberg
2002-06-11ftp range downloads make us ignore the final status message as the serverDaniel Stenberg
will most likely treat the download as failed as we might abort it pre-maturely
2002-06-11added disable-[protocol] support, largely provided by Miklos NemethDaniel Stenberg
2002-05-28Getting an empty FTP file no longer makes us return error 19. An empty fileDaniel Stenberg
is fine to get.
2002-04-27Fixed the FTP response reader to deal with timeouts better. Previously itDaniel Stenberg
would reset the timeout for each incoming data, which would make veeery slow responses be allowed to take even more time since the timeout would only be reached if the time between two received data chunks was longer than the set timeout value...
2002-04-27(Curl_GetFTPResponse) moved some code to only get performed when actuallyDaniel Stenberg
needed
2002-04-25adjusted to the new Curl_resolv() protoDaniel Stenberg
2002-04-25In order to not get problems with DNS cache pruning, we no longer storeDaniel Stenberg
any name resolved data in any curl handle struct. That way, we won't mind if the cache entries are pruned for the next time we need them. We'll just resolve them again instead. This changes the Curl_resolv() proto. It modifies the SessionHandle struct but perhaps most importantly, it'll make the internals somewhat dependent on the DNS cache not being disabled as that will cripple operations somewhat. Especially for persistant connections.
2002-04-14removed unused variableDaniel Stenberg
2002-04-12Jean-Philippe Barrette-LaPierre provided his patch that introducesDaniel Stenberg
CURLOPT_DEBUGFUNCTION and CURLOPT_DEBUGDATA.
2002-04-04This corrects VERBOSE PASV ftp transfers on AIX (and OSF1/Tru64)Daniel Stenberg
Gerhard Herre reported this in bug report #536238
2002-03-20verbose FTP PASV output could output a "random" name from the stack basedDaniel Stenberg
array Also, uploading data with --crlf cannot check that the proper size was uploaded and thus should not warn if the sizes differ. This can be changed in the future by having the expected size in the connectdata struct and then increase the expected size for each byte that is added in the --crlf replacement process.
2002-03-19copyright string (year) updateDaniel Stenberg
2002-03-16verbose PASV transfers passed a bad buffer size to the name resolver functionsDaniel Stenberg
and it cause cause a crash. Albert Choy found and fixed it.
2002-03-13no longer attempts to SIZE a NULL pointer, as that wasn't very cleverDaniel Stenberg
(but didn't crash or anything)
2002-02-28Wesley Laxton's CURLOPT_PREQUOTE workDaniel Stenberg
2002-02-20Nico Baggus' VMS tweaksDaniel Stenberg
2002-01-18#if [undefined] => #ifdef [undefined]Daniel Stenberg
2002-01-18made gcc -Wcast-align happyDaniel Stenberg
2002-01-16Somewhat ugly fix to deal with non-blocking sockets. We just loop and tryDaniel Stenberg
again. THIS IS NOT A NICE FIX. We should/must make a select() then and only retry when we can write to the socket again.
2002-01-14Curl_read() now returns a negative return code if EWOULDBLOCK or similarDaniel Stenberg
2002-01-04#include the local "inet_ntoa_r.h" file if no proto was found in the globalDaniel Stenberg
header directory but the function *is* present!
2002-01-04The buffer in ftp_pasv_verbose(), used for gethostbyaddr_r(), is now definedDaniel Stenberg
to become properly 8-byte aligned on 64-bit archs. Philip Gladstone reported.
2002-01-04The FTP response lines are now passed to the function callback registered forDaniel Stenberg
headers.
2002-01-03Sterling Hughes' provided initial DNS cache source code.Daniel Stenberg
2002-01-03pass an 'int' as the third argument to bind()Daniel Stenberg
2002-01-02Philip Gladstone's 64-bit sparc native compiler compatibility issues fixed.Daniel Stenberg
2001-12-20If nobody is set we won't download any FTP file. If include_header is set,Daniel Stenberg
we return a set of headers not more. This enables FTP operations that don't transfer any data, only perform FTP commands.
2001-12-11failf() calls should not have newlines in the message string!Daniel Stenberg
2001-12-03As Eric Lavigne pointed out, the ftp response reader MUST cache data thatDaniel Stenberg
is not dealt with when we find an end-of-response line, as there might be important stuff even after the correct line. So on subsequent invokes, the cached data must be used!