Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

curlinfo_ftp_entry_path(3) [mojave man page]

CURLINFO_FTP_ENTRY_PATH(3)				     curl_easy_getinfo options					CURLINFO_FTP_ENTRY_PATH(3)

NAME
CURLINFO_FTP_ENTRY_PATH - get entry path in FTP server SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_FTP_ENTRY_PATH, char **path); DESCRIPTION
Pass a pointer to a char pointer to receive a pointer to a string holding the path of the entry path. That is the initial path libcurl ended up in when logging on to the remote FTP server. This stores a NULL as pointer if something is wrong. The path pointer will be NULL or pointing to private memory you MUST NOT free - it gets freed when you call curl_easy_cleanup(3) on the corresponding CURL handle. PROTOCOLS
FTP(S) and SFTP EXAMPLE
TODO AVAILABILITY
Added in 7.15.4. Works for SFTP since 7.21.4 RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. SEE ALSO
curl_easy_getinfo(3), curl_easy_setopt(3), libcurl 7.54.0 February 03, 2016 CURLINFO_FTP_ENTRY_PATH(3)

Check Out this Related Man Page

CURLINFO_EFFECTIVE_URL(3)				     curl_easy_getinfo options					 CURLINFO_EFFECTIVE_URL(3)

NAME
CURLINFO_EFFECTIVE_URL - get the last used URL SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_EFFECTIVE_URL, char **urlp); DESCRIPTION
Pass in a pointer to a char pointer and get the last used effective URL. In cases when you've asked libcurl to follow redirects, it may very well not be the same value you set with CURLOPT_URL(3). The urlp pointer will be NULL or pointing to private memory you MUST NOT free - it gets freed when you call curl_easy_cleanup(3) on the corresponding CURL handle. PROTOCOLS
HTTP(S) EXAMPLE
TODO AVAILABILITY
Added in 7.4 RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. SEE ALSO
curl_easy_getinfo(3), curl_easy_setopt(3), libcurl 7.54.0 February 03, 2016 CURLINFO_EFFECTIVE_URL(3)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sed or awk

Hi all, Been a long while since I've been here and the changes look great.:b: Have a simple task that has been raised due to meeting PCI AND ISO standards. We currently keep a copy of all FTP/SFTP batch scripts just in case we need to view them, they are overwritten with each run, but we... (11 Replies)
Discussion started by: Cameron
11 Replies

2. Shell Programming and Scripting

SFTP - Pass password auti

ftp -i -n <<HERE open $IPADD user $USRNAME $PASS cd / get $FNAME close quit HERE Hi all the above script i used for ftp. How to modify same for sftp? thanks in advance (10 Replies)
Discussion started by: bullz26
10 Replies

3. 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

4. UNIX for Advanced & Expert Users

Trailing spaces chopped off - MF to Unix FTP.

We receive fixed width ASCII (not EBCIDIC) file from MF to UNIX server. We have trailing spaces in the file. What happens during FTP transmission, those trailing spaces gets chopped off. Is there any option in FTP when to transfer file from mainframes to unix not to chop off those spaces? (14 Replies)
Discussion started by: videsh77
14 Replies

5. UNIX for Advanced & Expert Users

Secure FTP corrupts file

Sun Microsystems Inc. SunOS 5.9 I am hoping someone has come across this before. I have a script that transfers several gz files via Secure FTP across to an SFTP server on an NT machine. The transfers show as successful: pack12_200812160337.tar.gz | 768kB | 768kB/s | ETA: 00:00:01 | 37%... (5 Replies)
Discussion started by: ronnie_uk
5 Replies

6. Shell Programming and Scripting

Need a FTP help

Hi, After connecting to the remote server by using FTP i need to know the file name residing on the remote path....So that that file name i can pass as a parameter to the main program...FTP program will get called from the main program.... Please let me know the solution. (4 Replies)
Discussion started by: Sagarddd
4 Replies

7. UNIX for Dummies Questions & Answers

anyone for cron?

i have searched for cronjob, crontab tutorials but none seem to make any sense to me. needless to say i have never used this before. i need to download a product xml feed (images and descriptions) from a remote server and upload it to another server. this has to be done once a week. i was told that... (13 Replies)
Discussion started by: buzzby
13 Replies

8. Shell Programming and Scripting

SFTP script help is needed

Hello all and Happy 2010! I have following problem and I do not have a full solution yet. Maybe someone of you could help .... I have remote sevrer A and I am connecting from my local server via SFTP to download .TXT files. -Files are dropped at random times into download folder on server A... (7 Replies)
Discussion started by: kalimero
7 Replies

9. Shell Programming and Scripting

Latest file through SFTP

Hi, I want to download the latest file published on remote server using SFTP connection. The job will run at every 15 min hence should download only the latest file. The fileName will be like ABC_DDHHMISS.txt (DD- day, HH-hour, MI - Min, SS-Sec). So there will be files with same date for... (23 Replies)
Discussion started by: ssachins
23 Replies

10. Shell Programming and Scripting

Migrate from FTP to SFTP

Hi,I am using following code for FTP in shell script file and it is working.Now I want to migrate from FTP to SFTP.What code changes/steps I have to perform for SFTP ? ftp -in <<FIN open $SAP_UP_SERVER user $SAP_UP_USER $SAP_UP_PASSWORD asc put... (7 Replies)
Discussion started by: Nitin Varshneya
7 Replies

11. Shell Programming and Scripting

Permission Denied in SFTP

Hello Guys, I am SFTPing from Solaris to Windows and accessing a softlink pointing to another server path (\\server\path). The same was working properly but I have made this connection passwordless and after that it show below error while accessing solftlink, couldn't canonicalise:... (9 Replies)
Discussion started by: Deei
9 Replies

12. Shell Programming and Scripting

Migration from FTP to SFTP

Hi Everyone, We are migrating from FTP to SFTP. We used the following script for FTP: echo "ftp -np -i -v << EOF" >> ${FTP_READY_FILE} echo "open ${SRC_FTP_SERVER} " >> ${FTP_READY_FILE} echo "user ${SRC_FTP_USER} ${SRC_FTP_PWD}" >> ${FTP_READY_FILE} echo "binary" >> ${FTP_READY_FILE}... (5 Replies)
Discussion started by: Jigsaw16
5 Replies

13. UNIX for Dummies Questions & Answers

How to download files matching pattern from FTP using CURL or WGET?

Hi, For an order I requested, the provider has uploaded a tar file in public FTP site which internally has tons of files (compressed) and I need to download files that follows particular pattern which would be few hundreds. Note: The order can't be requested for files that follows the... (7 Replies)
Discussion started by: Amalan
7 Replies

14. UNIX for Dummies Questions & Answers

SFTP without prompting password

Dear unix experts, i have a requirement as below. i need to use SFTP as FTP. ftp -n -v << ENDFTP open test_ftp.server user ftp_user_name ftp_password quit ENDFTP if i use this in a shell script, it's not asking for password. But i want the similar thing achived using... (5 Replies)
Discussion started by: AraR87
5 Replies

15. Shell Programming and Scripting

Not able to connect to new FTP server

Hi All, We have done new FTB setup. I am not able to to connect to this new target server. Here is the new setup to send files to the FTB : - Login : FTB-TAN-DEV-SAP - Protocol : SFTP - Port : 54322 - Hostname : ftb-dev.apj.hp - Env : DEV - Target ID : 3225 I tried connecting to the... (5 Replies)
Discussion started by: ROCK_PLSQL
5 Replies