8 More Discussions You Might Find Interesting
1. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
Here is my assignment.
Parse the /home/access_log and /home/access_.xz files
Create a sorted list of ip address with no duplicates
Pass each ip address to ipinfo.io with curl
Create a logfile that has the ip address,lat,long
Save... (1 Reply)
Discussion started by: kjcraig77
1 Replies
2. Shell Programming and Scripting
Hi All,
Seeking for your assistance on how to redirect into another files the logs of curl -v
i tried this code below but i got 0 logs.
curl -v 'http://127.0.0.0.......' >> test.logs
Thanks in advance.
BR, (2 Replies)
Discussion started by: znesotomayor
2 Replies
3. UNIX for Advanced & Expert Users
Hi
I am trying to write a curl one-liner that will help me to input the password after intiating the upload. Also this curl job needs to run on the background and transfer the verbose output to a file. So we can tail the file and check the status if required.
This is curl command that I am... (1 Reply)
Discussion started by: cutechaps
1 Replies
4. Shell Programming and Scripting
Hi all;
first of all i need to clarify that i am new to apache2 server configuration and for some needs i want to transfer some files using curl to web directory,so please bear with me:
following is the command i m running to transfer file to my web directory:
curl -T "q"... (4 Replies)
Discussion started by: arien001
4 Replies
5. Shell Programming and Scripting
I have a spent a day with Google trying to figure this one out and have decided its time to ask the experts...
I'm running OS X 10.6
I need to use cURL to FTP a file.
I have been successful send the file from the command line when I know the filename. My problem is that the filename changes... (2 Replies)
Discussion started by: fmSimplicity
2 Replies
6. Shell Programming and Scripting
I have to transfer a file from my aix box to another server using ftps protocol, how can i achieve this using curl preferably or any other utility.
Regards
Sandeep (0 Replies)
Discussion started by: jayawantsandeep
0 Replies
7. AIX
Hi guys ,
need some help
I have to transfer a file from my aix box to another server using ftps protocol, how can i achieve this using curl preferably or any other utility.
Thanks
Sandeep (0 Replies)
Discussion started by: jayawantsandeep
0 Replies
8. Shell Programming and Scripting
Aren't there any way to download files as below?
For example, I want to download all .html files under the root directory of unix.com/
curl -O https://www.unix.com/*.html
This won't work, but please tell me the way to do this.
Well, the best way is to get the file list of the directory, but i... (6 Replies)
Discussion started by: Euler04
6 Replies
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)