/PHP-5.6/ext/curl/tests/ |
H A D | curl_setopt_error.phpt | 2 curl_setopt() basic parameter test 12 curl_setopt(); 13 curl_setopt(false); 15 curl_setopt($ch); 16 curl_setopt($ch, false); 17 curl_setopt($ch, -10); 18 curl_setopt($ch, ''); 19 curl_setopt($ch, 1, false); 22 curl_setopt($ch, '', false); 23 curl_setopt($ch, 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_basic003.phpt | 2 curl_setopt() call with CURLOPT_HTTPHEADER 15 echo "*** curl_setopt() call with CURLOPT_HTTPHEADER\n"; 20 curl_setopt($ch, CURLOPT_HTTPHEADER, 1); 30 curl_setopt($ch, CURLOPT_HTTPHEADER, array()); 31 curl_setopt($ch, CURLOPT_URL, $host); 40 *** curl_setopt() call with CURLOPT_HTTPHEADER 42 Warning: curl_setopt(): You must pass either an object or an array with the CURLOPT_HTTPHEADER argu…
|
H A D | bug63795.phpt | 16 var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false)); 18 var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, true)); 19 var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0)); 20 var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1)); 21 var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2)); 28 Notice: curl_setopt(): CURLOPT_SSL_VERIFYHOST no longer accepts the value 1, value 2 will be used i… 32 Notice: curl_setopt(): CURLOPT_SSL_VERIFYHOST no longer accepts the value 1, value 2 will be used i…
|
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 | bug27023.phpt | 15 curl_setopt($ch, CURLOPT_SAFE_UPLOAD, 0); 16 curl_setopt($ch, CURLOPT_URL, "{$host}/get.php?test=file"); 17 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 20 curl_setopt($ch, CURLOPT_POSTFIELDS, $params); 24 curl_setopt($ch, CURLOPT_POSTFIELDS, $params); 28 curl_setopt($ch, CURLOPT_POSTFIELDS, $params); 32 curl_setopt($ch, CURLOPT_POSTFIELDS, $params); 36 curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
|
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_file_upload.phpt | 18 curl_setopt($ch, CURLOPT_POSTFIELDS, array("file" => $file)); 25 curl_setopt($ch, CURLOPT_URL, "{$host}/get.php?test=file"); 26 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 37 curl_setopt($ch, CURLOPT_POSTFIELDS, array("file" => $file)); 43 curl_setopt($ch, CURLOPT_POSTFIELDS, array("file" => $file)); 46 curl_setopt($ch, CURLOPT_SAFE_UPLOAD, 0); 48 curl_setopt($ch, CURLOPT_POSTFIELDS, $params); 51 curl_setopt($ch, CURLOPT_SAFE_UPLOAD, true); 53 curl_setopt($ch, CURLOPT_POSTFIELDS, $params); 56 curl_setopt($ch, CURLOPT_URL, "{$host}/get.php?test=post"); [all …]
|
H A D | bug63363.phpt | 16 var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false)); 18 var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, true)); 19 var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0)); 20 var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1)); 21 var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2)); 28 Notice: curl_setopt(): CURLOPT_SSL_VERIFYHOST with value 1 is deprecated and will be removed as of … 32 Notice: curl_setopt(): CURLOPT_SSL_VERIFYHOST with value 1 is deprecated and will be removed as of …
|
H A D | bug27023_2.phpt | 13 curl_setopt($ch, CURLOPT_SAFE_UPLOAD, 1); 14 curl_setopt($ch, CURLOPT_URL, "{$host}/get.php?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 | bug66109.phpt | 10 curl_setopt($ch, CURLOPT_URL, "{$host}/get.php?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 | bug65646_open_basedir_new.phpt | 13 var_dump(curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true)); 14 var_dump(curl_setopt($ch, CURLOPT_PROTOCOLS, CURLPROTO_FILE)); 15 var_dump(curl_setopt($ch, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_FILE)); 21 Warning: curl_setopt(): CURLPROTO_FILE cannot be activated when an open_basedir is set in %s on lin… 24 Warning: curl_setopt(): CURLPROTO_FILE cannot be activated when an open_basedir is set in %s on lin…
|
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}"));
|
H A D | curl_basic_002.phpt | 10 /* Prototype : bool curl_setopt(resource ch, int option, mixed value) 20 echo '*** Testing curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); ***' . "\n"; 26 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 27 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use 36 *** Testing curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); ***
|
H A D | curl_basic_006.phpt | 10 /* Prototype : bool curl_setopt(resource ch, int option, mixed value) 20 echo '*** Testing curl_setopt($ch, CURLOPT_WRITEFUNCTION, <closure>); ***' . "\n"; 26 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use 27 curl_setopt($ch, CURLOPT_WRITEFUNCTION, function ($ch, $data) { 39 *** Testing curl_setopt($ch, CURLOPT_WRITEFUNCTION, <closure>); ***
|
H A D | curl_copy_handle_basic_007.phpt | 16 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 17 curl_setopt($ch, CURLOPT_POST, 1); 18 …curl_setopt($ch, CURLOPT_POSTFIELDS, array("Hello" => "World", "Foo" => "Bar", "Person" => "John D… 19 …curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); // Disable Expect: header (lighttpd does n… 20 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
|
H A D | bug61948.phpt | 13 var_dump(curl_setopt($ch, CURLOPT_COOKIEFILE, "")); 14 var_dump(curl_setopt($ch, CURLOPT_COOKIEFILE, "/tmp/foo")); 15 var_dump(curl_setopt($ch, CURLOPT_COOKIEFILE, "/xxx/bar")); 22 Warning: curl_setopt(): open_basedir restriction in effect. File(/xxx/bar) is not within the allowe…
|
H A D | bug61948-win32.phpt | 13 var_dump(curl_setopt($ch, CURLOPT_COOKIEFILE, "")); 14 var_dump(curl_setopt($ch, CURLOPT_COOKIEFILE, "c:/tmp/foo")); 15 var_dump(curl_setopt($ch, CURLOPT_COOKIEFILE, "c:/xxx/bar")); 22 Warning: curl_setopt(): open_basedir restriction in effect. File(c:/xxx/bar) is not within the allo…
|
H A D | bug54798.phpt | 17 curl_setopt($ch, CURLOPT_VERBOSE, 1); 21 curl_setopt($ch, CURLOPT_UPLOAD, 1); 24 curl_setopt($ch, $curl_option, $fp); 26 curl_setopt($ch, CURLOPT_URL, $host); 27 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
H A D | bug55767.phpt | 9 /* Prototype : bool curl_setopt(resource ch, int option, mixed value) 25 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 26 curl_setopt($ch, CURLOPT_POST, 1); 27 curl_setopt($ch, CURLOPT_POSTFIELDS, array('Hello'=>'World','Foo'=>'Bar',100=>'John Doe')); 28 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
|
H A D | curl_basic_003.phpt | 10 /* Prototype : bool curl_setopt(resource ch, int option, mixed value) 26 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 27 curl_setopt($ch, CURLOPT_POST, 1); 28 curl_setopt($ch, CURLOPT_POSTFIELDS, "Hello=World&Foo=Bar&Person=John%20Doe"); 29 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
|
H A D | curl_multi_getcontent_error4.phpt | 19 …curl_setopt($ch1, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata1.… 20 …curl_setopt($ch2, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata2.… 21 curl_setopt($ch1, CURLOPT_RETURNTRANSFER, true); 22 curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true); 53 Warning: curl_setopt() expects parameter 1 to be resource, null given in %s on line %d 57 Warning: curl_setopt() expects parameter 1 to be resource, null given in %s on line %d
|
H A D | bug69316.phpt | 14 curl_setopt($ch, CURLOPT_COOKIE, str_repeat("a", $FILE_size - 1)); 25 curl_setopt($ch, CURLOPT_BUFFERSIZE, 10); 26 curl_setopt($ch, CURLOPT_HEADERFUNCTION, "hdr_callback"); 27 curl_setopt($ch, CURLOPT_FILE, $f_file); 28 curl_setopt($ch, CURLOPT_URL, $url);
|
H A D | bug45161.phpt | 26 curl_setopt($ch, CURLOPT_URL, 'http://127.0.0.1:9/'); 27 curl_setopt($ch, CURLOPT_FILE, $fp); 35 curl_setopt($ch, CURLOPT_URL, 'http://127.0.0.1:9/'); 36 curl_setopt($ch, CURLOPT_FILE, $fp);
|
/PHP-5.6/ext/standard/tests/file/ |
H A D | bug52820.phpt | 11 curl_setopt($handle, CURLOPT_VERBOSE, true); 12 curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); 13 if (!curl_setopt($handle, CURLOPT_STDERR, fopen("php://memory", "w+"))) 19 curl_setopt($handle, CURLOPT_VERBOSE, true); 20 curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); 21 curl_setopt($handle, CURLOPT_STDERR, $o = fopen($url, "w+"));
|