Home
last modified time | relevance | path

Searched refs:curl (Results 1 – 25 of 116) sorted by relevance

12345

/PHP-7.4/ext/curl/tests/
H A Dbug52202.phpt5 if (!extension_loaded('curl')) exit("skip curl extension not loaded");
9 $curl = curl_init("http://www.google.com");
10 curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
11 curl_setopt($curl, CURLOPT_PRIVATE, "123");
12 curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 1);
13 curl_setopt($curl, CURLOPT_TIMEOUT, 1);
14 curl_exec($curl);
16 var_dump(curl_getinfo($curl, CURLINFO_PRIVATE));
H A Dbug77535.phpt11 exit("skip: test may crash with curl < 7.61.0");
19 private $curl;
29 $this->curl = curl_init();
30 curl_setopt($this->curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
32 curl_setopt($this->curl, CURLOPT_HEADER, false);
33 curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, false);
34 curl_setopt($this->curl, CURLOPT_FAILONERROR, false);
36 curl_setopt($this->curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0);
37 curl_setopt($this->curl, CURLOPT_HEADERFUNCTION, function ($ch, $data) {
40 curl_setopt($this->curl, CURLOPT_WRITEFUNCTION, function ($ch, $data) {
[all …]
H A Dbug62839.phpt4 <?php if (!extension_loaded("curl")) print "skip";
8 $curl = curl_init();
11 curl_setopt($curl, CURLOPT_FILE, $fd);
13 curl_copy_handle($curl);
H A Dbug48514.phpt6 if (!extension_loaded('curl')) {
7 exit("skip curl extension not loaded");
24 resource(%d) of type (curl)
25 string(4) "curl"
H A Dcurl_multi_setopt_basic001.phpt5 if (!extension_loaded("curl")) {
6 exit("skip curl extension not loaded");
10 exit("skip: test works only with curl >= 7.16.0");
24 Warning: curl_multi_setopt(): Invalid curl multi configuration option in %s on line %d
H A Dbug65646_open_basedir_old.phpt2 …-enable CURLOPT_FOLLOWLOCATION with open_basedir or safe_mode): open_basedir enabled; curl < 7.19.4
7 if (!extension_loaded('curl')) exit("skip curl extension not loaded");
8 if (version_compare(curl_version()['version'], '7.19.4', '>=')) exit("skip curl version is too new"…
H A Dcurl_write_file.phpt2 Test curl option CURLOPT_FILE
7 Writes the value 'test' to a temporary file. Use curl to access this file and store the output in a…
9 <?php if (!extension_loaded("curl")) print "skip"; ?>
13 $test_file = tempnam(sys_get_temp_dir(), 'php-curl-test');
14 $log_file = tempnam(sys_get_temp_dir(), 'php-curl-test');
H A Dcurl_basic_014.phpt6 <?php if (!extension_loaded("curl")) exit("skip curl extension not loaded"); ?>
14 resource(%d) of type (curl)
H A Dcurl_write_callback.phpt2 Test curl option CURLOPT_WRITEFUNCTION
7 Writes the value 'test' to a temporary file. Use curl to access this file, passing the output into …
9 <?php if (!extension_loaded("curl")) print "skip"; ?>
19 $log_file = tempnam(sys_get_temp_dir(), 'php-curl-test');
H A Dcurl_write_return.phpt2 Test curl option CURLOPT_RETURNTRANSFER
7 Writes the value 'test' to a temporary file. Use curl to access this file and have it return the co…
10 <?php if (!extension_loaded("curl")) print "skip"; ?>
14 $log_file = tempnam(sys_get_temp_dir(), 'php-curl-test');
H A Dcurl_write_stdout.phpt2 Test curl option CURLOPT_FILE with STDOUT handle
7 Writes the value 'test' to a temporary file. Use curl to access this file and store the output in a…
9 <?php if (!extension_loaded("curl")) print "skip"; ?>
13 $log_file = tempnam(sys_get_temp_dir(), 'php-curl-test');
H A Dbug72202.phpt5 if (!extension_loaded("curl")) {
6 exit("skip curl extension not loaded");
30 resource(%d) of type (curl)
31 resource(%d) of type (curl)
H A Dcurl_multi_strerror_001.phpt5 if (!extension_loaded("curl")) {
6 exit("skip curl extension not loaded");
10 exit("skip: test works only with curl >= 7.12.0");
H A Dcurl_share_setopt_basic001.phpt5 if (!extension_loaded("curl")) {
6 exit("skip curl extension not loaded");
22 Warning: curl_share_setopt(): Invalid curl share configuration option in %s on line %d
H A Dcurl_strerror_001.phpt5 if (!extension_loaded("curl")) {
6 exit("skip curl extension not loaded");
10 exit("skip: test works only with curl >= 7.12.0");
H A Dbug65646_open_basedir_new.phpt2 …enable CURLOPT_FOLLOWLOCATION with open_basedir or safe_mode): open_basedir enabled; curl >= 7.19.4
7 if (!extension_loaded('curl')) exit("skip curl extension not loaded");
8 if (version_compare(curl_version()['version'], '7.19.4', '<')) exit("skip curl version is too old");
H A Dcurl_multi_errno_strerror_001.phpt5 if (!extension_loaded("curl")) {
6 exit("skip curl extension not loaded");
10 exit("skip: test works only with curl >= 7.15.4");
H A Dcurl_share_errno_strerror_001.phpt5 if (!extension_loaded("curl")) {
6 exit("skip curl extension not loaded");
10 exit("skip: test works only with curl >= 7.12.0");
H A Dcurl_basic_024.phpt2 Test curl_getinfo() function with CURLINFO_* from curl >= 7.52.0
4 <?php if (!extension_loaded("curl")) print "skip";
7 exit("skip: test works only with curl >= 7.52.0");
H A Dcurl_escape.phpt5 if (!extension_loaded("curl")) exit("skip curl extension not loaded");
9 exit("skip: tests works only on curl >= 7.21.2");
H A Dcurl_multi_init_basic.phpt7 <?php if (!extension_loaded("curl")) print "skip"; ?>
12 * Source code : ext/curl/multi.c
13 * Test documentation: http://wiki.php.net/qa/temp/ext/curl
H A Dskipif.inc2 if (!extension_loaded("curl")) exit("skip curl extension not loaded");
/PHP-7.4/ext/curl/
H A Dconfig.w323 ARG_WITH("curl", "cURL support", "no");
7 var f = PHP_PHP_BUILD + "/include/curl/curlver.h";
16 if (CHECK_LIB("libcurl_a.lib;libcurl.lib", "curl", PHP_CURL) &&
17 CHECK_HEADER_ADD_INCLUDE("curl/easy.h", "CFLAGS_CURL") &&
18 SETUP_OPENSSL("curl", PHP_CURL) > 0 &&
19 CHECK_LIB("winmm.lib", "curl", PHP_CURL) &&
20 CHECK_LIB("wldap32.lib", "curl", PHP_CURL) &&
25 CHECK_LIB("normaliz.lib", "curl", PHP_CURL) &&
26 CHECK_LIB("libssh2.lib", "curl", PHP_CURL) &&
27 CHECK_LIB("nghttp2.lib", "curl", PHP_CURL))
[all …]
H A Dconfig.m41 PHP_ARG_WITH([curl],
3 [AS_HELP_STRING([--with-curl],
32 #include <curl/curl.h>
75 PHP_CHECK_LIBRARY(curl,curl_easy_perform,
84 PHP_NEW_EXTENSION(curl, interface.c multi.c share.c curl_file.c, $ext_shared)
/PHP-7.4/ext/standard/tests/file/
H A Dbug53241.phpt6 * curl to test this */
7 if (!extension_loaded("curl")) exit("skip curl extension not loaded");

Completed in 58 milliseconds

12345