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
CURLOPT_IGNORE_CONTENT_LENGTH(3) curl_easy_setopt options CURLOPT_IGNORE_CONTENT_LENGTH(3)
NAME
CURLOPT_IGNORE_CONTENT_LENGTH - ignore content length
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_IGNORE_CONTENT_LENGTH,
long ignore);
DESCRIPTION
If ignore is set to 1L, ignore the Content-Length header in the HTTP response and ignore asking for or relying on it for FTP transfers.
This is useful for HTTP with Apache 1.x (and similar servers) which will report incorrect content length for files over 2 gigabytes. If
this option is used, curl will not be able to accurately report progress, and will simply stop the download when the server ends the con-
nection.
It is also useful with FTP when for example the file is growing while the transfer is in progress which otherwise will unconditionally
cause libcurl to report error.
Only use this option if strictly necessary.
DEFAULT
0
PROTOCOLS
HTTP
EXAMPLE
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
/* we know the server is silly, ignore content-length */
curl_easy_setopt(curl, CURLOPT_IGNORE_CONTENT_LENGTH, 1L);
curl_easy_perform(curl);
}
AVAILABILITY
Added in 7.14.1. Support for FTP added in 7.46.0.
RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
SEE ALSO
CURLOPT_HTTP_VERSION(3), CURLOPT_MAXFILESIZE_LARGE(3),
libcurl 7.54.0 February 03, 2016 CURLOPT_IGNORE_CONTENT_LENGTH(3)