curl_version(3) libcurl Manual curl_version(3)NAME
curl_version - returns the libcurl version string
SYNOPSIS
#include <curl/curl.h>
char *curl_version( );
DESCRIPTION
Returns a human readable string with the version number of libcurl and some of its important components (like OpenSSL version).
RETURN VALUE
A pointer to a zero terminated string.
SEE ALSO curl_version_info(3)libcurl 7.0 5 March 2001 curl_version(3)
Check Out this Related Man Page
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)
Hello, I'm trying to use libcurl multi interface to fetch several data in parallel. I would expect this to be faster than performing repeated fetches using the easy interface, but for some reason I can't obtain any speed up at all: using the multi interface actually turns out to be MUCH slower than... (2 Replies)
Hello all-
I'm (hopefully) trying to replace a WS_FTP (Windows program) job with a curl command in a script on UNIX.
In short, this process has been in place for some time, and in curl I am getting directory perm issues, which does not seem to be accurate, since this process has been in place... (2 Replies)
Hello,
I tried searching through lot of threads for a solution but couldn't fetch the exact solution, so I am creating a new thread.
I am trying to connect to a FTP server
1) using a simple FTP command, it gives the error :
534 Policy requires SSL.
Login failed.
2) using SFTP... (19 Replies)
Hi Guys,
I have recently started reciving below Error message
Failed HTTPS transfer to https://supportfiles.sun.com/curl
whenever I run
/usr/local/bin/sudo /opt/SUNWexplo/bin/explorer -P -q -v
from all Servers.
Looks like the SSL certificate as Expired.
Whenever I type... (4 Replies)