/php-src/ext/curl/tests/ |
H A D | curl_setopt_ssl.phpt | 78 var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false)); 79 var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false)); 80 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 90 var_dump(curl_setopt($ch, CURLOPT_SSLCERT_BLOB, '')); 94 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 105 var_dump(curl_setopt($ch, CURLOPT_SSLKEY_BLOB, '')); 108 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 122 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 138 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 154 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); [all …]
|
H A D | curl_setopt_basic004.phpt | 2 curl_setopt() call with CURLOPT_RETURNTRANSFER 15 echo "*** curl_setopt() call with CURLOPT_RETURNTRANSFER set to 1\n"; 20 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 21 curl_setopt($ch, CURLOPT_URL, $url); 28 echo "*** curl_setopt() call with CURLOPT_RETURNTRANSFER set to 0\n"; 32 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0); 33 curl_setopt($ch, CURLOPT_URL, $url); 42 *** curl_setopt() call with CURLOPT_RETURNTRANSFER set to 1 44 *** curl_setopt() call with CURLOPT_RETURNTRANSFER set to 0
|
H A D | curl_setopt_error.phpt | 2 curl_setopt() basic parameter test 10 echo "*** curl_setopt() call with incorrect parameters\n"; 14 curl_setopt($ch, '', false); 20 curl_setopt($ch, -10, 0); 26 curl_setopt($ch, 1000, 0); 33 *** curl_setopt() call with incorrect parameters 34 curl_setopt(): Argument #2 ($option) must be of type int, string given 35 curl_setopt(): Argument #2 ($option) is not a valid cURL option 36 curl_setopt(): Argument #2 ($option) is not a valid cURL option
|
H A D | curl_setopt_CURLOPT_DEBUGFUNCTION.phpt | 25 curl_setopt($ch, CURLOPT_URL, "{$host}/get.inc?test=file"); 26 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 27 curl_setopt($ch, CURLOPT_VERBOSE, 0); 32 curl_setopt($ch, CURLOPT_VERBOSE, 1); 37 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 38 curl_setopt($ch, CURLOPT_VERBOSE, 1); 40 curl_setopt($ch, CURLOPT_STDERR, $stderr); 49 curl_setopt($ch, CURLOPT_STDERR, $stderr); 116 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 121 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); [all …]
|
H A D | bug63795.phpt | 8 var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false)); 10 var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, true)); 11 var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0)); 12 var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1)); 13 var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2)); 20 Notice: curl_setopt(): CURLOPT_SSL_VERIFYHOST no longer accepts the value 1, value 2 will be used i… 24 Notice: curl_setopt(): CURLOPT_SSL_VERIFYHOST no longer accepts the value 1, value 2 will be used i…
|
H A D | curl_setopt_basic003.phpt | 2 curl_setopt() call with CURLOPT_HTTPHEADER 15 echo "*** curl_setopt() call with CURLOPT_HTTPHEADER\n"; 21 curl_setopt($ch, CURLOPT_HTTPHEADER, 1); 34 curl_setopt($ch, CURLOPT_HTTPHEADER, array()); 35 curl_setopt($ch, CURLOPT_URL, $host); 44 *** curl_setopt() call with CURLOPT_HTTPHEADER 45 curl_setopt(): The CURLOPT_HTTPHEADER option must have an array value
|
H A D | curl_share_basic.phpt | 11 curl_setopt($ch1, CURLOPT_URL, 'file://' . __DIR__ . '/curl_testdata1.txt'); 12 curl_setopt($ch1, CURLOPT_RETURNTRANSFER, true); 13 curl_setopt($ch1, CURLOPT_SHARE, $sh); 16 curl_setopt($ch2, CURLOPT_URL, 'file://' . __DIR__ . '/curl_testdata2.txt'); 17 curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true); 18 curl_setopt($ch2, CURLOPT_SHARE, $sh);
|
H A D | gh16802.phpt | 17 curl_setopt($ch, CURLOPT_PROTOCOLS_STR, "all"); 18 curl_setopt($ch, CURLOPT_PROTOCOLS_STR, "ftp,all"); 19 curl_setopt($ch, CURLOPT_PROTOCOLS_STR, "all,ftp"); 20 curl_setopt($ch, CURLOPT_PROTOCOLS_STR, "all,file,ftp"); 24 Warning: curl_setopt(): The FILE protocol cannot be activated when an open_basedir is set in %s on … 26 Warning: curl_setopt(): The FILE protocol cannot be activated when an open_basedir is set in %s on … 28 Warning: curl_setopt(): The FILE protocol cannot be activated when an open_basedir is set in %s on … 30 Warning: curl_setopt(): The FILE protocol cannot be activated when an open_basedir is set in %s on …
|
H A D | curl_ftp_pasv.phpt | 24 // curl_setopt ( $ch , CURLOPT_VERBOSE, 1 ); 38 curl_setopt ( $ch , CURLOPT_URL, $url ); 39 curl_setopt ( $ch , CURLOPT_TRANSFERTEXT, 1 ); 42 curl_setopt ( $ch , CURLOPT_FTP_USE_EPSV, 0 ); 43 curl_setopt ( $ch , CURLOPT_FTP_SKIP_PASV_IP, 1 ); 46 curl_setopt ( $ch , CURLOPT_INFILE, $fp ); 47 curl_setopt ( $ch , CURLOPT_INFILESIZE, filesize(__FILE__) ); 48 curl_setopt ( $ch , CURLOPT_PUT, 1 ); 49 curl_setopt ( $ch , CURLOPT_UPLOAD, 1 );
|
H A D | curl_setopt_basic002.phpt | 2 curl_setopt basic tests with CURLOPT_STDERR. 15 echo "*** Testing curl_setopt with CURLOPT_STDERR\n"; 24 curl_setopt($ch, CURLOPT_VERBOSE, 1); 25 curl_setopt($ch, CURLOPT_STDERR, $handle); 35 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use 36 curl_setopt($ch, CURLOPT_STDERR, $handle); 49 *** Testing curl_setopt with CURLOPT_STDERR
|
H A D | curl_setopt_CURLOPT_ACCEPT_ENCODING.phpt | 2 Test curl_setopt() with CURLOPT_ACCEPT_ENCODING 14 curl_setopt($ch, CURLOPT_URL, $url); 15 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 16 curl_setopt($ch, CURLOPT_ACCEPT_ENCODING, "gzip"); 17 curl_setopt($ch, CURLINFO_HEADER_OUT, 1); 24 curl_setopt($ch, CURLOPT_ACCEPT_ENCODING, NULL);
|
H A D | curl_file_upload.phpt | 17 curl_setopt($ch, CURLOPT_POSTFIELDS, array("file" => $file)); 24 curl_setopt($ch, CURLOPT_URL, "{$host}/get.inc?test=file"); 25 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 36 curl_setopt($ch, CURLOPT_POSTFIELDS, array("file" => $file)); 42 curl_setopt($ch, CURLOPT_POSTFIELDS, array("file" => $file)); 46 curl_setopt($ch, CURLOPT_SAFE_UPLOAD, 0); 52 curl_setopt($ch, CURLOPT_POSTFIELDS, $params); 55 curl_setopt($ch, CURLOPT_SAFE_UPLOAD, true); 57 curl_setopt($ch, CURLOPT_POSTFIELDS, $params); 60 curl_setopt($ch, CURLOPT_URL, "{$host}/get.inc?test=post"); [all …]
|
H A D | curl_basic_028.phpt | 22 curl_setopt($ch, CURLOPT_URL, $url); 23 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 24 var_dump(curl_setopt($ch, CURLOPT_PROTOCOLS_STR, "FilE,DICT")); 25 var_dump(curl_setopt($ch, CURLOPT_PROTOCOLS_STR, "DICT")); 26 var_dump(curl_setopt($ch, CURLOPT_REDIR_PROTOCOLS_STR, "HTTP")); 31 Warning: curl_setopt(): The FILE protocol cannot be activated when an open_basedir is set in %s on …
|
H A D | curl_upkeep_001.phpt | 16 curl_setopt($ch,CURLOPT_URL,$url); 17 curl_setopt($ch,CURLOPT_RETURNTRANSFER,true); 18 curl_setopt($ch,CURLOPT_HTTP_VERSION,CURL_HTTP_VERSION_2_0); 19 curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false); 20 curl_setopt($ch, CURLOPT_UPKEEP_INTERVAL_MS, 200);
|
H A D | bug77535.phpt | 31 curl_setopt($this->curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); 32 curl_setopt($this->curl, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); 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); 38 curl_setopt($this->curl, CURLOPT_HEADERFUNCTION, function ($ch, $data) { 41 curl_setopt($this->curl, CURLOPT_WRITEFUNCTION, function ($ch, $data) {
|
H A D | bug52202.phpt | 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);
|
H A D | bug27023.phpt | 13 curl_setopt($ch, CURLOPT_SAFE_UPLOAD, 1); 14 curl_setopt($ch, CURLOPT_URL, "{$host}/get.inc?test=file"); 15 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 19 curl_setopt($ch, CURLOPT_POSTFIELDS, $params); 24 curl_setopt($ch, CURLOPT_POSTFIELDS, $params); 29 curl_setopt($ch, CURLOPT_POSTFIELDS, $params); 34 curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
|
H A D | bug65646_open_basedir_new.phpt | 10 var_dump(curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true)); 11 var_dump(curl_setopt($ch, CURLOPT_PROTOCOLS, CURLPROTO_FILE)); 12 var_dump(curl_setopt($ch, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_FILE)); 18 Warning: curl_setopt(): CURLPROTO_FILE cannot be activated when an open_basedir is set in %s on lin… 21 Warning: curl_setopt(): CURLPROTO_FILE cannot be activated when an open_basedir is set in %s on lin…
|
H A D | bug76675.phpt | 18 curl_setopt($passed, CURLOPT_WRITEFUNCTION, function ($ch, $data) { 29 curl_setopt($ch, CURLOPT_URL, 'https://localhost/serverpush'); 30 curl_setopt($ch, CURLOPT_HTTP_VERSION, 3); 31 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); 32 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); 33 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
H A D | bug66109.phpt | 10 curl_setopt($ch, CURLOPT_URL, "{$host}/get.inc?test=method"); 11 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 13 curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE'); 16 curl_setopt($ch, CURLOPT_CUSTOMREQUEST, NULL);
|
H A D | curl_pause_001.phpt | 27 curl_setopt($ch, CURLOPT_URL, "{$host}/get.inc?test=input"); 28 curl_setopt($ch, CURLOPT_UPLOAD, 1); 29 curl_setopt($ch, CURLOPT_READFUNCTION, new Input); 30 curl_setopt($ch, CURLOPT_INFILE, $inputHandle); 31 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
H A D | curl_basic_030.phpt | 20 curl_setopt($ch, CURLOPT_URL, $url); 21 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 22 var_dump(curl_setopt($ch, CURLOPT_CA_CACHE_TIMEOUT, 1)); 23 var_dump(curl_setopt($ch, CURLOPT_QUICK_EXIT, 1000));
|
H A D | curl_file_upload_stream.phpt | 11 curl_setopt($ch, CURLOPT_SAFE_UPLOAD, 1); 12 curl_setopt($ch, CURLOPT_URL, "{$host}/get.inc?test=file"); 13 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 17 var_dump(curl_setopt($ch, CURLOPT_POSTFIELDS, $params));
|
H A D | bug77711.phpt | 11 curl_setopt($ch, CURLOPT_SAFE_UPLOAD, 1); 12 curl_setopt($ch, CURLOPT_URL, "{$host}/get.php?test=file"); 13 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 19 var_dump(curl_setopt($ch, CURLOPT_POSTFIELDS, $params));
|
H A D | curl_CURLOPT_READDATA.phpt | 23 curl_setopt($ch, CURLOPT_URL, $url); 24 curl_setopt($ch, CURLOPT_POST, true); 25 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 26 curl_setopt($ch, CURLOPT_READDATA, fopen($tempname, 'rb')); 27 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:', "Content-Length: {$datalen}"));
|