/PHP-7.4/ext/curl/tests/ |
H A D | bug69485.phpt | 9 public $ch; 14 $ch = curl_init(); 17 $o->ch = $ch; 18 curl_setopt($ch, CURLOPT_WRITEFUNCTION, array($o, "dummy"));
|
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"; 23 $ch = curl_init(); 26 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 27 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use 29 $curl_content = curl_exec($ch); 30 curl_close($ch); 36 *** Testing curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); ***
|
H A D | curl_copy_handle_basic_005.phpt | 17 $ch = curl_init(); 20 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 21 curl_setopt($ch, CURLOPT_POST, 1); 22 curl_setopt($ch, CURLOPT_POSTFIELDS, "Hello=World&Foo=Bar&Person=John%20Doe"); 23 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use 26 $curl_content = curl_exec($ch); 27 $copy = curl_copy_handle($ch); 28 curl_close($ch);
|
H A D | curl_setopt_basic002.phpt | 22 $ch = curl_init(); 24 curl_setopt($ch, CURLOPT_VERBOSE, 1); 25 curl_setopt($ch, CURLOPT_STDERR, $handle); 26 $curl_content = curl_exec($ch); 35 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use 36 curl_setopt($ch, CURLOPT_STDERR, $handle); 37 $data = curl_exec($ch); 45 curl_close($ch);
|
H A D | curl_basic_010.phpt | 17 $ch = curl_init(); 18 curl_setopt($ch, CURLOPT_PROXY, uniqid().":".uniqid()); 19 curl_setopt($ch, CURLOPT_URL, $url); 21 curl_exec($ch); 22 var_dump(curl_error($ch)); 23 var_dump(curl_errno($ch)); 24 curl_close($ch);
|
H A D | curl_basic_008.phpt | 17 $ch = curl_init(); 18 curl_setopt($ch, CURLOPT_URL, $url); 20 curl_exec($ch); 21 var_dump(curl_error($ch)); 22 var_dump(curl_errno($ch)); 23 curl_close($ch);
|
H A D | bug69316.phpt | 7 function hdr_callback($ch, $data) { 14 curl_setopt($ch, CURLOPT_COOKIE, str_repeat("a", $FILE_size - 1)); 23 $ch = curl_init(); 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); 29 curl_exec($ch); 30 curl_close($ch);
|
H A D | curl_multi_segfault.phpt | 20 $ch = curl_init (); 22 curl_setopt ( $ch , CURLOPT_URL, $url ); 23 curl_setopt ( $ch , CURLOPT_RETURNTRANSFER, 1 ); 26 curl_setopt ( $ch , CURLOPT_FTP_USE_EPSV, 0 ); 27 curl_setopt ( $ch , CURLOPT_FTP_SKIP_PASV_IP, 1 ); 30 curl_multi_add_handle($cmh, $ch); 47 var_dump(is_string(curl_multi_getcontent($ch))); 48 curl_multi_remove_handle($cmh, $ch); 49 curl_close($ch);
|
H A D | curl_copy_handle_basic_007.phpt | 13 $ch = curl_init(); 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 22 $copy = curl_copy_handle($ch); 23 curl_close($ch);
|
H A D | bug45161.phpt | 17 $ch = curl_init(); 23 curl_setopt($ch, CURLOPT_URL, 'http://127.0.0.1:9/'); 24 curl_setopt($ch, CURLOPT_FILE, $fp); 25 curl_exec($ch); 32 curl_setopt($ch, CURLOPT_URL, "{$host}/get.inc"); 33 curl_setopt($ch, CURLOPT_FILE, $fp); 34 curl_exec($ch);
|
H A D | curl_setopt_error.phpt | 11 $ch = curl_init(); 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, ''); 24 curl_setopt($ch, -10, 0);
|
H A D | bug54798-unix.phpt | 16 $ch = curl_init(); 20 curl_setopt($ch, CURLOPT_VERBOSE, 1); 24 curl_setopt($ch, CURLOPT_UPLOAD, 1); 27 curl_setopt($ch, $curl_option, $fp); 29 curl_setopt($ch, CURLOPT_URL, $host); 30 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 34 curl_exec($ch); 36 curl_close($ch);
|
H A D | bug54798.phpt | 13 $ch = curl_init(); 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); 31 curl_exec($ch); 33 curl_close($ch);
|
H A D | bug76675.phpt | 18 curl_setopt($passed, CURLOPT_WRITEFUNCTION, function ($ch, $data) { 28 $ch = curl_init(); 29 curl_setopt($ch, CURLOPT_URL, 'https://http2.golang.org/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); 34 curl_multi_add_handle($mh, $ch);
|
H A D | curl_basic_011.phpt | 9 /* Prototype : bool curl_setopt(resource ch, int option, mixed value) 22 $ch = curl_init(); 25 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 26 curl_setopt($ch, CURLOPT_COOKIE, 'foo=bar'); 27 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use 29 $curl_content = curl_exec($ch); 30 curl_close($ch);
|
H A D | curl_basic_012.phpt | 9 /* Prototype : bool curl_setopt(resource ch, int option, mixed value) 22 $ch = curl_init(); 25 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 26 curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); 27 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use 29 $curl_content = curl_exec($ch); 30 curl_close($ch);
|
H A D | curl_basic_013.phpt | 9 /* Prototype : bool curl_setopt(resource ch, int option, mixed value) 22 $ch = curl_init(); 25 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 26 curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 27 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use 29 $curl_content = curl_exec($ch); 30 curl_close($ch);
|
H A D | curl_basic_020.phpt | 13 $ch = curl_init(); 14 curl_setopt($ch, CURLOPT_URL, $url); 15 curl_exec($ch); 16 var_dump(curl_getinfo($ch, CURLINFO_HTTP_CODE)); 17 curl_close($ch);
|
H A D | bug55767.phpt | 9 /* Prototype : bool curl_setopt(resource ch, int option, mixed value) 22 $ch = curl_init(); 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 30 $curl_content = curl_exec($ch); 31 curl_close($ch);
|
H A D | curl_basic_021.phpt | 13 $ch = curl_init(); 14 curl_setopt($ch, CURLOPT_URL, $url); 15 curl_exec($ch); 16 var_dump(curl_getinfo($ch, CURLINFO_CONTENT_TYPE)); 17 curl_close($ch);
|
H A D | curl_basic_005.phpt | 10 /* Prototype : bool curl_setopt(resource ch, int option, mixed value) 23 $ch = curl_init(); 26 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 27 curl_setopt($ch, CURLOPT_USERAGENT, 'cURL phpt'); 28 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use 30 $curl_content = curl_exec($ch); 31 curl_close($ch);
|
H A D | bug63795.phpt | 15 $ch = curl_init(); 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)); 23 curl_close($ch);
|
H A D | curl_copy_handle_basic_002.phpt | 16 $ch = curl_init(); 19 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 20 curl_setopt($ch, CURLOPT_POST, 1); 21 curl_setopt($ch, CURLOPT_POSTFIELDS, "Hello=World&Foo=Bar&Person=John%20Doe"); 22 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use 24 $copy = curl_copy_handle($ch); 25 curl_close($ch);
|
H A D | bug48203.phpt | 10 $ch = curl_init(); 12 curl_setopt($ch, CURLOPT_VERBOSE, 1); 13 curl_setopt($ch, CURLOPT_STDERR, $fp); 14 curl_setopt($ch, CURLOPT_URL, curl_cli_server_start()); 18 curl_exec($ch); 19 curl_close($ch);
|
/PHP-7.4/ext/standard/tests/strings/ |
H A D | chunk_split_variation10.phpt | 42 ') speci@! ch@r$ (' //string with special chars 59 string(82) "This is t o test ch unk_split () with v arious 's ingle quo ted' endi ng string . " 65 string(118) "This is t@#$%^o test ch@#$%^unk_split@#$%^() with v@#$%^arious 's@#$%^ingle quo@#$%^te… 67 string(91) "This is t\to test ch\tunk_split\t() with v\tarious 's\tingle quo\tted' endi\tng string\… 69 string(91) "This is t\no test ch\nunk_split\n() with v\narious 's\ningle quo\nted' endi\nng string\… 71 string(91) "This is t\ro test ch\runk_split\r() with v\rarious 's\ringle quo\rted' endi\rng string\… 73 string(109) "This is t\r\no test ch\r\nunk_split\r\n() with v\r\narious 's\r\ningle quo\r\nted' end… 75 string(91) "This is t\0o test ch\0unk_split\0() with v\0arious 's\0ingle quo\0ted' endi\0ng string\… 79 string(118) "This is t(MSG)o test ch(MSG)unk_split(MSG)() with v(MSG)arious 's(MSG)ingle quo(MSG)te… 83 string(217) "This is t) numbers 1234 (o test ch) numbers 1234 (unk_split) numbers 1234 (() with v) … [all …]
|