Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

curlopt_ftp_filemethod(3) [mojave man page]

CURLOPT_FTP_FILEMETHOD(3)				     curl_easy_setopt options					 CURLOPT_FTP_FILEMETHOD(3)

NAME
CURLOPT_FTP_FILEMETHOD - select directory traversing method for FTP SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_FTP_FILEMETHOD, long method); DESCRIPTION
Pass a long telling libcurl which method to use to reach a file on a FTP(S) server. This option exists because some server implementations aren't compliant to what the standards say should work. The argument should be one of the following alternatives: CURLFTPMETHOD_MULTICWD libcurl does a single CWD operation for each path part in the given URL. For deep hierarchies this means many commands. This is how RFC1738 says it should be done. This is the default but the slowest behavior. CURLFTPMETHOD_NOCWD libcurl does no CWD at all. libcurl will do SIZE, RETR, STOR etc and give a full path to the server for all these commands. This is the fastest behavior. CURLFTPMETHOD_SINGLECWD libcurl does one CWD with the full target directory and then operates on the file "normally" (like in the multicwd case). This is somewhat more standards compliant than 'nocwd' but without the full penalty of 'multicwd'. DEFAULT
CURLFTPMETHOD_MULTICWD PROTOCOLS
FTP EXAMPLE
TODO AVAILABILITY
Added in 7.15.1 RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. SEE ALSO
CURLOPT_DIRLISTONLY(3), CURLOPT_FTP_SKIP_PASV_IP(3), libcurl 7.54.0 February 09, 2016 CURLOPT_FTP_FILEMETHOD(3)

Check Out this Related Man Page

CURLOPT_ACCEPTTIMEOUT_MS(3)				     curl_easy_setopt options				       CURLOPT_ACCEPTTIMEOUT_MS(3)

NAME
CURLOPT_ACCEPTTIMEOUT_MS - timeout waiting for FTP server to connect back SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_ACCEPTTIMEOUT_MS, long ms); DESCRIPTION
Pass a long telling libcurl the maximum number of milliseconds to wait for a server to connect back to libcurl when an active FTP connec- tion is used. DEFAULT
60000 milliseconds PROTOCOLS
FTP EXAMPLE
CURL *curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "ftp://example.com/path/file"); /* wait no more than 5 seconds for FTP server responses */ curl_easy_setopt(curl, CURLOPT_ACCEPTTIMEOUT_MS, 5000L); curl_easy_perform(curl); } AVAILABILITY
Added in 7.24.0 RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. SEE ALSO
CURLOPT_STDERR(3), CURLOPT_DEBUGFUNCTION(3), libcurl 7.54.0 March 06, 2016 CURLOPT_ACCEPTTIMEOUT_MS(3)
Man Page

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Files resending through FTP

Hi All, I have the following requirement: I have two server . One is source and other receiver. My requiremnt is that from Source server i have to check in a specified path whether any file with *.BAD extension is therer in the receiver server or not . If it then i have to... (2 Replies)
Discussion started by: rawatds
2 Replies

2. Programming

FTP Library

What is the "best" library to deal with FTP in C programming language? I've considered libcurl and ftplib (ftplib), but libcurl is designed for HTTP-like protocols (but supports FTP) and ftplib is poor in functionality (no multi-interface, don't know whether is it thread-safe or not, no custom... (6 Replies)
Discussion started by: Hitori
6 Replies

3. Shell Programming and Scripting

Help FTP Error-??

I had uploaded some files to this server previously and got the following o/p. ftp> cd /TUXIDOW 250 CWD command successful. ftp>mput /ftp/boss1/tsg/public/acct/fleet1/outbound/A900-STEEL.test2 local: /ftp/boss1/tsg/public/acct/fleet1/outbound/A900-STEEL.test2 remote:... (2 Replies)
Discussion started by: Tuxidow
2 Replies

4. Shell Programming and Scripting

executing commands through FTP session

Dears, i want to execute unix commands through FTP session those commands like grep XXXXX file name > new file tar new file ..... etc Please let me know how to so thank you (3 Replies)
Discussion started by: faiz
3 Replies

5. Programming

Is gcc compliant with the C++ standards

Hello Friends, I am a newbie and have started using different compilers and tools to make myself familiar with their workings. I wanted to know that how compliant is gcc with the C++ standards. It is pretty obvious that no compiler is close to being completely compliant, but if there are some... (7 Replies)
Discussion started by: hthapar
7 Replies

6. Linux

Disc is full - NOT! How to fix?

When I try to create a new text file on my server, via FTP, I get an error that the destination drive / disk is full. This is not true. I have at least 3-4 GB of space left. How can this be? Have not had this problem before, until today. I'm pretty new to Linux, and am therefore grateful for... (4 Replies)
Discussion started by: Guldstrand
4 Replies

7. Shell Programming and Scripting

Syntax error `end of file' unexpected

I checked the forum and internet, tried different workaorunds but it didnt fixed the error. Please advise on the code. #!/bin/sh CWD=/home/test/Bench cd $CWD (grep "`date +%d-%b"`" File.txt) > /home/test/Bench/dateout if then echo “data” > /home/test/ Bench /test else echo "File... (16 Replies)
Discussion started by: rajjev_saini123
16 Replies