/php-src/ext/curl/ |
H A D | config.w32 | 3 ARG_WITH("curl", "cURL support", "no"); 6 if (CHECK_LIB("libcurl_a.lib;libcurl.lib", "curl", PHP_CURL) && 7 CHECK_HEADER_ADD_INCLUDE("curl/easy.h", "CFLAGS_CURL") && 8 SETUP_OPENSSL("curl", PHP_CURL) >= 2 && 9 CHECK_LIB("winmm.lib", "curl", PHP_CURL) && 10 CHECK_LIB("wldap32.lib", "curl", PHP_CURL) && 13 (CHECK_LIB("normaliz.lib", "curl", PHP_CURL) && 14 CHECK_LIB("libssh2.lib", "curl", PHP_CURL) && 15 CHECK_LIB("nghttp2.lib", "curl", PHP_CURL)) 17 EXTENSION("curl", "interface.c multi.c share.c curl_file.c"); [all …]
|
H A D | config.m4 | 1 PHP_ARG_WITH([curl], 3 [AS_HELP_STRING([--with-curl], 28 #include <curl/curl.h> 74 PHP_CHECK_LIBRARY([curl], 77 [Define to 1 if the PHP extension 'curl' is available.])], 81 PHP_NEW_EXTENSION([curl], 84 PHP_INSTALL_HEADERS([ext/curl], [php_curl.h])
|
/php-src/ext/curl/tests/ |
H A D | bug52202.phpt | 4 curl 7 $curl = curl_init("http://www.google.com"); 8 curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); 9 curl_setopt($curl, CURLOPT_PRIVATE, "123"); 10 curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 1); 11 curl_setopt($curl, CURLOPT_TIMEOUT, 1); 12 curl_exec($curl); 14 var_dump(curl_getinfo($curl, CURLINFO_PRIVATE));
|
H A D | bug77535.phpt | 4 curl 12 exit("skip: test may crash with curl < 8.1.0"); 20 private $curl; 30 $this->curl = curl_init(); 33 curl_setopt($this->curl, CURLOPT_HEADER, false); 34 curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, false); 35 curl_setopt($this->curl, CURLOPT_FAILONERROR, false); 36 curl_setopt($this->curl, CURLOPT_URL, 'https://localhost/serverpush'); 37 curl_setopt($this->curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); 41 curl_setopt($this->curl, CURLOPT_WRITEFUNCTION, function ($ch, $data) { [all …]
|
H A D | curlopt_private.phpt | 4 curl 7 $curl = curl_init("foobar"); 9 curl_setopt($curl, CURLOPT_PRIVATE, $obj); 10 var_dump($obj === curl_getinfo($curl, CURLINFO_PRIVATE)); 12 $curl2 = curl_copy_handle($curl); 16 var_dump($obj === curl_getinfo($curl, CURLINFO_PRIVATE));
|
H A D | bug62839.phpt | 4 curl 7 $curl = curl_init(); 10 curl_setopt($curl, CURLOPT_FILE, $fd); 12 curl_copy_handle($curl);
|
H A D | curl_write_file.phpt | 2 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 curl 13 $test_file = tempnam(sys_get_temp_dir(), 'php-curl-test'); 14 $log_file = tempnam(sys_get_temp_dir(), 'php-curl-test');
|
H A D | curl_write_trampoline.phpt | 2 Test trampoline for curl option CURLOPT_WRITEFUNCTION 4 curl 17 $log_file = tempnam(sys_get_temp_dir(), 'php-curl-CURLOPT_WRITEFUNCTION-trampoline'); 32 $log_file = tempnam(sys_get_temp_dir(), 'php-curl-CURLOPT_WRITEFUNCTION-trampoline');
|
H A D | curl_write_return.phpt | 2 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 curl 14 $log_file = tempnam(sys_get_temp_dir(), 'php-curl-test');
|
H A D | curl_write_stdout.phpt | 2 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 curl 13 $log_file = tempnam(sys_get_temp_dir(), 'php-curl-test');
|
H A D | curl_write_callback.phpt | 2 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 curl 19 $log_file = tempnam(sys_get_temp_dir(), 'php-curl-test');
|
H A D | curl_setopt_array_basic.phpt | 7 curl 12 * Source: ext/curl/interface.c 13 * Documentation: http://wiki.php.net/qa/temp/ext/curl 33 // curl handler 36 // options for the curl handler
|
H A D | curl_basic_026.phpt | 2 Test curl_getinfo() function with CURLOPT_* from curl >= 7.81.0 4 curl 8 exit("skip: test works only with curl >= 7.81.0");
|
H A D | curl_basic_025.phpt | 2 Test curl_getinfo() function with CURLINFO_* from curl >= 7.72.0 4 curl 8 exit("skip: test works only with curl >= 7.72.0");
|
H A D | curl_basic_030.phpt | 2 Test curl_getinfo() function with CURLOPT_* from curl >= 7.87.0 4 curl 8 exit("skip: test works only with curl >= 7.87.0");
|
H A D | curl_copy_handle_basic_006.phpt | 7 curl 14 echo '*** Testing curl copy handle with User Agent ***' . "\n"; 29 …exec($copy) since it causes char * inputs to be invalid (see also: http://curl.haxx.se/libcurl/c/c… 34 *** Testing curl copy handle with User Agent ***
|
H A D | curl_reset.phpt | 4 curl 8 $test_file = tempnam(sys_get_temp_dir(), 'php-curl-test'); 9 $log_file = tempnam(sys_get_temp_dir(), 'php-curl-test');
|
H A D | curl_basic_029.phpt | 2 Test curl_getinfo() function with CURLOPT_* from curl >= 7.86.0 4 curl 8 exit("skip: test works only with curl >= 7.86.0");
|
H A D | curl_basic_011.phpt | 6 curl 13 echo '*** Testing curl with cookie ***' . "\n"; 29 *** Testing curl with cookie ***
|
H A D | curl_basic_012.phpt | 6 curl 13 echo '*** Testing curl with HTTP/1.0 ***' . "\n"; 29 *** Testing curl with HTTP/1.0 ***
|
H A D | curl_basic_013.phpt | 6 curl 13 echo '*** Testing curl with HTTP/1.1 ***' . "\n"; 29 *** Testing curl with HTTP/1.1 ***
|
H A D | curl_basic_005.phpt | 7 curl 14 echo '*** Testing curl with user agent ***' . "\n"; 30 *** Testing curl with user agent ***
|
H A D | curl_basic_004.phpt | 7 curl 14 echo '*** Testing curl setting referer ***' . "\n"; 30 *** Testing curl setting referer ***
|
H A D | curl_copy_handle_basic_001.phpt | 7 curl 14 echo '*** Testing curl copy handle with simple GET ***' . "\n"; 32 *** Testing curl copy handle with simple GET ***
|
H A D | curl_basic_027.phpt | 2 Test curl_getinfo() function with CURLINFO_* and CURLOPT_* from curl >= 7.84.0 4 curl 8 exit("skip: test works only with curl >= 7.84.0");
|