10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all,
I have been struggling with this issue on and off for a couple of weeks now and I just got it all working, so I wanted to share my findings in case some other poor soul needs to know how. First some background on what I'm doing. I am uploading files to different directories based on... (0 Replies)
Discussion started by: msjkadams
0 Replies
2. Shell Programming and Scripting
Hello,
I am using curl command to interact with the FTP server. I have gathered some information around downloading / uploading of files using curl command.
However, I couldn't find any information around
1) Listing all the files on FTP server in any given folder having a specific extn.
(... (3 Replies)
Discussion started by: amitshete
3 Replies
3. Shell Programming and Scripting
hello,
I'm trying to upload a file to this ftp server and others ftp://ftp.byethost12.com as you can see in the output of CURL using the -v option
curl reports that the upload succeeded but when i connected to the server with file-zilla there is no file uploaded the same command
upload files... (5 Replies)
Discussion started by: laraaj
5 Replies
4. Shell Programming and Scripting
Hello - I'm a novice, so apologies if this is a stupid/answered question.
I'm operating on a mac, and I'm using ftp to transfer files to my computer. The files have atypical names, although I have a list of them, addresses included. Is there a way to automate this using curl?
That is to... (3 Replies)
Discussion started by: Qroid
3 Replies
5. UNIX for Dummies Questions & Answers
Can this be done? Or do you need some other program installed on the AIX box? (6 Replies)
Discussion started by: NycUnxer
6 Replies
6. Shell Programming and Scripting
Hi
I am trying to fetch a file from a remote location and download it into a local directory ...i was previously doing it quite simply using ftp but now i need to do the same using the cURL tool ...Here i am not getting an option to specify a directory name i am trying the following but... (0 Replies)
Discussion started by: jamshedj
0 Replies
7. UNIX and Linux Applications
Can anyone recommend some good/reliable FTP clients for HP-UX that support SFTP/SSL/SSH and have a command line interface? They need not be "free" (license). Thanks! (2 Replies)
Discussion started by: maxshop
2 Replies
8. UNIX for Dummies Questions & Answers
We have a requirement to setup secure ftp between our AIX v5.3 system and
our mainframe. We don't want to use openssh with sftp and scp. Our mainframe uses ftp over ssl/tls so we have to use this on our AIX box. We have openssl on our AIX system but I'm not sure how to setup ssl/tls over ftp
on... (4 Replies)
Discussion started by: DANNYC
4 Replies
9. Shell Programming and Scripting
Hi,
I want to FTP can some one help me how do I do this manually from unix command line
Thanks, (2 Replies)
Discussion started by: sridatos
2 Replies
10. UNIX for Advanced & Expert Users
I need to make an SSL FTP connection from my Unix machine to an SSL FTP server. I've found lots of SSL-capable FTP clients for windows machines, but can't seem to find any for Unix (HP-UX 11i, to be specific).
I found, and have tried a package called tlswrap, but that is not working.
Anybody... (2 Replies)
Discussion started by: denverd0n
2 Replies
CURLINFO_PROTOCOL(3) curl_easy_getinfo options CURLINFO_PROTOCOL(3)
NAME
CURLINFO_PROTOCOL - get the protocol used in the connection
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_PROTOCOL, long *p);
DESCRIPTION
Pass a pointer to a long to receive the version used in the last http connection. The returned value will be one of the CURLPROTO_* val-
ues.
PROTOCOLS
All
EXAMPLE
CURL *curl = curl_easy_init();
if(curl) {
CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
res = curl_easy_perform(curl);
if(res == CURLE_OK) {
long protocol;
curl_easy_getinfo(curl, CURLINFO_PROTOCOL, &protocol);
}
curl_easy_cleanup(curl);
}
AVAILABILITY
Added in 7.52.0
RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
SEE ALSO
CURLINFO_RESPONSE_CODE(3), curl_easy_getinfo(3), curl_easy_setopt(3),
libcurl 7.54.0 November 23, 2016 CURLINFO_PROTOCOL(3)