summaryrefslogtreecommitdiff
path: root/lib/ftp.h
Commit message (Collapse)AuthorAgeFilesLines
* lib: clean up whitespaceMarcel Raad2020-04-251-1/+0
| | | | This fixes CodeFactor warnings.
* ftp: remove the duplicated user/password struct fieldsDaniel Stenberg2020-02-071-3/+1
| | | | Closes #4887
* FTP: url-decode path before evaluationZenju2019-09-271-1/+0
| | | | Closes #4428
* Revert "FTP: url-decode path before evaluation"Daniel Stenberg2019-09-261-0/+1
| | | | This reverts commit 2f036a72d543e96128bd75cb0fedd88815fd42e2.
* FTP: url-decode path before evaluationZenju2019-09-261-1/+0
| | | | Closes #4423
* FTP: FTPFILE_NOCWD: avoid redundant CWDsZenju2019-09-211-3/+2
| | | | Closes #4382
* urldata: simplify bytecountersDaniel Stenberg2019-03-011-2/+1
| | | | | | | | | | | | | - no need to have them protocol specific - no need to set pointers to them with the Curl_setup_transfer() call - make Curl_setup_transfer() operate on a transfer pointer, not connection - switch some counters from long to the more proper curl_off_t type Closes #3627
* url: use the URL API internally as wellDaniel Stenberg2018-09-221-0/+2
| | | | | | ... to make it a truly unified URL parser. Closes #3017
* ftplistparser: renamed some members and variablesDaniel Stenberg2018-04-231-2/+2
| | | | ... to make them better spell out what they're for.
* ftp: fix CWD when doing multicwd then nocwd on same connectionDaniel Stenberg2017-08-171-0/+1
| | | | | | Fixes #1782 Closes #1787 Reported-by: Peter Lamare
* FTP: skip unnecessary CWD when in nocwd modeDaniel Stenberg2017-08-041-1/+2
| | | | | | ... when reusing a connection. If it didn't do any CWD previously. Fixes #1718
* checksrc: code style: use 'char *name' styleDaniel Stenberg2016-11-241-1/+1
|
* ftp: fix Curl_ftpsendf()Daniel Stenberg2016-10-081-2/+2
| | | | | | | | | | | ... it no longer takes printf() arguments since it was only really taken advantage by one user and it was not written and used in a safe way. Thus the 'f' is removed from the function name and the proto is changed. Although the current code wouldn't end up in badness, it was a risk that future changes could end up springf()ing too large data or passing in a format string inadvertently.
* internals: rename the SessionHandle struct to Curl_easyDaniel Stenberg2016-06-221-2/+2
|
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-031-1/+1
|
* FTP: fix IPv6 host using link-local addressDaniel Stenberg2015-01-081-6/+5
| | | | | | | | | | | ... and make sure we can connect the data connection to a host name that is longer than 48 bytes. Also simplifies the code somewhat by re-using the original host name more, as it is likely still in the DNS cache. Original-Patch-by: Vojtěch Král Bug: http://curl.haxx.se/bug/view.cgi?id=1468
* FTP: make the data connection work when going through proxyDaniel Stenberg2013-10-261-0/+6
| | | | | | | | | | | This is a regression since the switch to always-multi internally c43127414d89c. Test 1316 was modified since we now clearly call the Curl_client_write() function when doing the LIST transfer part and then the handler->protocol says FTP and ftpc.transfertype is 'A' which implies text converting even though that the response is initially a HTTP CONNECT response in this case.
* pingpong: Renamed curl_ftptransfer to curl_pp_transferSteve Holme2013-02-231-2/+2
|
* pingpong: Moved curl_ftptransfer definition to pingpong.hSteve Holme2013-02-231-7/+0
| | | | | Moved the ftp transfer structure into pingpong.h so other protocols that require it don't have to include ftp.h.
* Revert changes relative to lib/*.[ch] recent renamingYang Tse2013-01-061-0/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts renaming and usage of lib/*.h header files done 28-12-2012, reverting 2 commits: f871de0... build: make use of 76 lib/*.h renamed files ffd8e12... build: rename 76 lib/*.h files This also reverts removal of redundant include guard (redundant thanks to changes in above commits) done 2-12-2013, reverting 1 commit: c087374... curl_setup.h: remove redundant include guard This also reverts renaming and usage of lib/*.c source files done 3-12-2013, reverting 3 commits: 13606bb... build: make use of 93 lib/*.c renamed files 5b6e792... build: rename 93 lib/*.c files 7d83dff... build: commit 13606bbfde follow-up 1 Start of related discussion thread: http://curl.haxx.se/mail/lib-2013-01/0012.html Asking for confirmation on pushing this revertion commit: http://curl.haxx.se/mail/lib-2013-01/0048.html Confirmation summary: http://curl.haxx.se/mail/lib-2013-01/0079.html NOTICE: The list of 2 files that have been modified by other intermixed commits, while renamed, and also by at least one of the 6 commits this one reverts follows below. These 2 files will exhibit a hole in history unless git's '--follow' option is used when viewing logs. lib/curl_imap.h lib/curl_smtp.h
* build: rename 76 lib/*.h filesYang Tse2012-12-281-161/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 76 private header files renamed to use our standard naming scheme. This commit only does the file renaming. ---------------------------------------- renamed: amigaos.h -> curl_amigaos.h renamed: arpa_telnet.h -> curl_arpa_telnet.h renamed: asyn.h -> curl_asyn.h renamed: axtls.h -> curl_axtls.h renamed: bundles.h -> curl_bundles.h renamed: conncache.h -> curl_conncache.h renamed: connect.h -> curl_connect.h renamed: content_encoding.h -> curl_content_encoding.h renamed: cookie.h -> curl_cookie.h renamed: cyassl.h -> curl_cyassl.h renamed: dict.h -> curl_dict.h renamed: easyif.h -> curl_easyif.h renamed: escape.h -> curl_escape.h renamed: file.h -> curl_file.h renamed: fileinfo.h -> curl_fileinfo.h renamed: formdata.h -> curl_formdata.h renamed: ftp.h -> curl_ftp.h renamed: ftplistparser.h -> curl_ftplistparser.h renamed: getinfo.h -> curl_getinfo.h renamed: gopher.h -> curl_gopher.h renamed: gtls.h -> curl_gtls.h renamed: hash.h -> curl_hash.h renamed: hostcheck.h -> curl_hostcheck.h renamed: hostip.h -> curl_hostip.h renamed: http.h -> curl_http.h renamed: http_chunks.h -> curl_http_chunks.h renamed: http_digest.h -> curl_http_digest.h renamed: http_negotiate.h -> curl_http_negotiate.h renamed: http_proxy.h -> curl_http_proxy.h renamed: if2ip.h -> curl_if2ip.h renamed: imap.h -> curl_imap.h renamed: inet_ntop.h -> curl_inet_ntop.h renamed: inet_pton.h -> curl_inet_pton.h renamed: krb4.h -> curl_krb4.h renamed: llist.h -> curl_llist.h renamed: memdebug.h -> curl_memdebug.h renamed: multiif.h -> curl_multiif.h renamed: netrc.h -> curl_netrc.h renamed: non-ascii.h -> curl_non-ascii.h renamed: nonblock.h -> curl_nonblock.h renamed: nssg.h -> curl_nssg.h renamed: parsedate.h -> curl_parsedate.h renamed: pingpong.h -> curl_pingpong.h renamed: polarssl.h -> curl_polarssl.h renamed: pop3.h -> curl_pop3.h renamed: progress.h -> curl_progress.h renamed: qssl.h -> curl_qssl.h renamed: rawstr.h -> curl_rawstr.h renamed: rtsp.h -> curl_rtsp.h renamed: select.h -> curl_select.h renamed: sendf.h -> curl_sendf.h renamed: setup.h -> curl_setup.h renamed: setup_once.h -> curl_setup_once.h renamed: share.h -> curl_share.h renamed: slist.h -> curl_slist.h renamed: smtp.h -> curl_smtp.h renamed: sockaddr.h -> curl_sockaddr.h renamed: socks.h -> curl_socks.h renamed: speedcheck.h -> curl_speedcheck.h renamed: splay.h -> curl_splay.h renamed: ssh.h -> curl_ssh.h renamed: sslgen.h -> curl_sslgen.h renamed: ssluse.h -> curl_ssluse.h renamed: strdup.h -> curl_strdup.h renamed: strequal.h -> curl_strequal.h renamed: strerror.h -> curl_strerror.h renamed: strtok.h -> curl_strtok.h renamed: strtoofft.h -> curl_strtoofft.h renamed: telnet.h -> curl_telnet.h renamed: tftp.h -> curl_tftp.h renamed: timeval.h -> curl_timeval.h renamed: transfer.h -> curl_transfer.h renamed: url.h -> curl_url.h renamed: urldata.h -> curl_urldata.h renamed: warnless.h -> curl_warnless.h renamed: wildcard.h -> curl_wildcard.h ----------------------------------------
* build: make use of 76 lib/*.h renamed filesYang Tse2012-12-281-1/+1
| | | | | | 76 private header files renamed to use our standard naming scheme. This change affects 322 files in libcurl's source tree.
* timeleft_accept: ack global timeout, moved to ftp.cDaniel Stenberg2011-12-201-0/+2
| | | | | | First off the timeout for accepting a server connect back must of course respect a global timeout. Then the timeleft function is only used by ftp code so it was moved to ftp.c and made static.
* FTP: move FTP-specific struct field to ftpc_connDaniel Stenberg2011-12-201-0/+1
| | | | | | "wait_data_conn" was added to the connectionbits in commit c834213ad5 for handling active FTP connections but as it is purely FTP specific and now only ever accessed by ftp.c I moved it into the FTP connection struct.
* FTP: perform active connections non-blockingGokhan Sengun2011-12-201-0/+3
| | | | | | | | | | | | | | | | | | | | 1- Two new error codes are introduced. CURLE_FTP_ACCEPT_FAILED to be set whenever ACCEPTing fails because of FTP server connected. CURLE_FTP_ACCEPT_TIMEOUT to be set whenever ACCEPTing timeouts. Neither of these errors are considered fatal and control connection remains OK because it could just be a firewall blocking server to connect to the client. 2- One new setopt option was introduced. CURLOPT_ACCEPTTIMEOUT_MS It sets the maximum amount of time FTP client is going to wait for a server to connect. Internal default accept timeout is 60 seconds.
* source cleanup: unify look, style and indent levelsDaniel Stenberg2011-04-271-4/+6
| | | | | By the use of a the new lib/checksrc.pl script that checks that our basic source style rules are followed.
* FTP: WILDCARDMATCH/CHUNKING/FNMATCH addedPavel Raiskup2010-05-121-0/+13
|
* remove the CVSish $Id$ linesDaniel Stenberg2010-03-241-1/+0
|
* make Curl_handler_*_proxy definition staticYang Tse2010-01-251-11/+3
|
* update copyright year since we are in 2010 nowDaniel Stenberg2010-01-011-1/+1
|
* - Ingmar Runge enhanced libcurl's FTP engine to support the PRET command. ThisDaniel Stenberg2010-01-011-0/+1
| | | | | | | | | command is a special "hack" used by the drftpd server, but even though it is a custom extension I've deemed it fine to add to libcurl since this server seems to survive and people keep using it and want libcurl to support it. The new libcurl option is named CURLOPT_FTP_USE_PRET, and it is also usable from the curl tool with --ftp-pret. Using this option on a server that doesn't support this command will make libcurl fail.
* introducing IMAP, POP3 and SMTP support (still lots of polish left to do)Daniel Stenberg2009-12-121-2/+104
|
* Added per-protocol callback static tables, replacing callback ptr storagePatrick Monnerat2007-10-121-11/+14
| | | | in the connectdata structure by a single handler table ptr.
* update copyright year noticeYang Tse2007-01-271-1/+1
|
* - Armel Asselin improved libcurl to behave a lot better when an easy handleDaniel Stenberg2007-01-161-1/+1
| | | | | | doing an FTP transfer is removed from a multi handle before completion. The fix also fixed the "alive counter" to be correct on "premature removal" for all protocols.
* First curl_multi_socket() commit. Should primarily be considered as an internalDaniel Stenberg2006-04-101-4/+3
| | | | code rearrange to fit the future better.
* FTP code turned into state machine. Not completely yet, but a good start.Daniel Stenberg2005-02-091-11/+18
| | | | | The tag 'before_ftp_statemachine' was set just before this commit in case of future need.
* Curl_done() and the protocol-specific conn->curl_done() functions now allDaniel Stenberg2004-05-121-1/+1
| | | | | take a CURLcode as a second argument, that is non-zero when Curl_done() is called after an error was returned from Curl_do() (or similar).
* removed Curl_ftp_quit() as it was turned into a static in ftp.cDaniel Stenberg2004-04-221-1/+0
|
* added the missing proto for the still unused quit functionDaniel Stenberg2004-01-221-0/+1
|
* updated year in the copyright stringDaniel Stenberg2004-01-071-1/+1
|
* Use ssize_t instead of 'int' to make the 64 bit sparc compiler happier.Daniel Stenberg2003-03-111-1/+1
| | | | Fix by Richard Gorton.
* copyright year update in the source headerDaniel Stenberg2003-01-161-1/+1
|
* Curl_GetFTPResponse() takes a different set of parameters and now return aDaniel Stenberg2002-12-031-2/+2
| | | | | proper CURLcode. The default timeout for reading one response is now also possible to change while running.
* updated source code boilerplate/headerDaniel Stenberg2002-09-031-7/+7
|
* Initial fix to make the multi interface return control while waiting forDaniel Stenberg2002-08-121-9/+1
| | | | | | | the initial connect to "come through". This should work fine for connect and for FTP-PASV connects. Needs massive testing.
* added disable-[protocol] support, largely provided by Miklos NemethDaniel Stenberg2002-06-111-0/+8
|
* copyright string (year) updateDaniel Stenberg2002-03-191-1/+1
|
* Curl_ftpsendf() had wrong return typeDaniel Stenberg2001-11-051-1/+1
|
* removed the socket argument from some functions that always passed in theDaniel Stenberg2001-09-281-3/+2
| | | | same socket and it was available from the passed-in struct anyway!