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)
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)
Hello everybody,
I am having problem in converting byte array variables to Hexa String variables for Linux. I have done, converting byte array variables to Hexa String variables for Windows but same function doesn't work for linux. Is there any difference in OS ? The code for Windows is given... (2 Replies)
I have a script that uses cli curl, and it would be easier if it was possible to pass variables like this:
curl -c $cookie -d $data www.********.comThis doesn't work, instead I have to generate a string and use eval.
Is there another, easier way to pass variables to cli curl? (1 Reply)
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)
Hi All,
i have a requirement where i have to run a script with at least 25 arguements and position of arguements can also change. the unapropriate way is like below. can we achieve this in more good and precise way??
#!/bin/ksh
##script is sample.ksh
age=$1
gender=$2
class=$3
.
.
.... (3 Replies)
Hello experts!
I have a file1 with the following format (yr,day, month, hour,minute):
201201132435
201202141210
201304132030
201410100110
...
What i want to do is to assign variables and then use them in the curl command to download the text of each event from a web page.
What I have... (6 Replies)
Hi guys!
Kind of new to bash scripting and now I'm stuck.
I need to curl with these variables:
"{ \"nodename\": \"$1\", \"ipaddress\": \"$2\", \"poolname\": \"$3\", \"port\": \"$4\", \"loadbalancer\" : \"$5\" }"
and my input_file.txt contains
server001 10.10.10.01 serverpool1 80... (4 Replies)
Hi All,
I'm trying to run a script which issues rest commands via curl to an endpoint. If I put spaces in fields via something like insomnia, it works, but when I try from an input file, it's failing with a json error.
while IFS=, read mname oname <------ my input file... (10 Replies)
Discussion started by: say170
10 Replies
LEARN ABOUT PHP
curl_version
CURL_VERSION(3) 1 CURL_VERSION(3)curl_version - Gets cURL version informationSYNOPSIS
array curl_version ([int $age = CURLVERSION_NOW])
DESCRIPTION
Returns information about the cURL version.
PARAMETERS
o $age
-
RETURN VALUES
Returns an associative array with the following elements:
+-------------------+-------------------------------------------------+
| Indice | |
| | |
| | Value description |
| | |
+-------------------+-------------------------------------------------+
| version_number | |
| | |
| | cURL 24 bit version number |
| | |
| version | |
| | |
| | cURL version number, as a string |
| | |
|ssl_version_number | |
| | |
| | OpenSSL 24 bit version number |
| | |
| ssl_version | |
| | |
| | OpenSSL version number, as a string |
| | |
| libz_version | |
| | |
| | zlib version number, as a string |
| | |
| host | |
| | |
| | Information about the host where cURL was built |
| | |
| age | |
| | |
| | |
| | T{ features |
| | |
| | A bitmask of the CURL_VERSION_XXX constants |
| | |
| protocols | |
| | |
| | An array of protocols names supported by cURL |
| | |
+-------------------+-------------------------------------------------+
EXAMPLES
Example #1
curl_version(3) example
This example will check which features that's available in cURL build by using the 'features' bitmask returned by curl_version(3).
<?php
// Get curl version array
$version = curl_version();
// These are the bitfields that can be used
// to check for features in the curl build
$bitfields = Array(
'CURL_VERSION_IPV6',
'CURL_VERSION_KERBEROS4',
'CURL_VERSION_SSL',
'CURL_VERSION_LIBZ'
);
foreach($bitfields as $feature)
{
echo $feature . ($version['features'] & constant($feature) ? ' matches' : ' does not match');
echo PHP_EOL;
}
?>
PHP Documentation Group CURL_VERSION(3)