/php-src/ext/curl/tests/ |
H A D | curl_basic_015.phpt | 2 Test curl_init() function with $url parameter defined 9 $url = 'http://www.example.com/'; 10 $ch = curl_init($url); 11 var_dump($url == curl_getinfo($ch, CURLINFO_EFFECTIVE_URL));
|
H A D | curl_error_basic.phpt | 2 curl_error() function - basic test for curl_error using a fake url 12 $url = "fakeURL"; 13 $ip = gethostbyname($url); 14 if ($ip != $url) die("skip 'fakeURL' resolves to $ip\n"); 26 $url = "fakeURL"; 31 $ch = curl_init($url);
|
H A D | curl_multi_get_handles.phpt | 15 foreach ($urls as $url) { 16 echo "Initializing {$url}.", PHP_EOL; 17 $ch = curl_init($url); 21 $map[$ch] = $url; 40 $url = $map[$handle]; 41 echo "Request to {$url} finished.", PHP_EOL;
|
H A D | curl_basic_019.phpt | 12 $url = "http://{$host}/get.inc?test="; 15 curl_setopt($ch, CURLOPT_URL, $url); 18 var_dump($url == $info);
|
H A D | curl_basic_011.phpt | 15 $url = "{$host}/get.inc?test=cookie"; 21 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
|
H A D | curl_basic_012.phpt | 15 $url = "{$host}/get.inc?test=httpversion"; 21 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
|
H A D | curl_basic_013.phpt | 15 $url = "{$host}/get.inc?test=httpversion"; 21 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
|
H A D | curl_fnmatch_trampoline.phpt | 23 $url = "ftp://{$host}/file*"; 24 //$url = "ftp://ftp.example.com/file*"; 25 $ch = curl_init($url);
|
H A D | curl_basic_002.phpt | 16 $url = "{$host}/get.inc?test=get"; 21 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
|
H A D | curl_basic_005.phpt | 16 $url = "{$host}/get.inc?test=useragent"; 22 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
|
H A D | curl_copy_handle_basic_004.phpt | 16 $url = "{$host}/get.inc?test=getpost&get_param=Hello%20World"; 21 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
|
H A D | curl_basic_001.phpt | 16 $url = "{$host}/get.inc?test=get"; 20 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
|
H A D | curl_basic_004.phpt | 16 $url = "{$host}/get.inc?test=referer"; 22 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
|
H A D | curl_basic_006.phpt | 16 $url = "{$host}/get.inc?test=get"; 20 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
|
H A D | curl_copy_handle_basic_001.phpt | 16 $url = "{$host}/get.inc?test=getpost&get_param=Hello%20World"; 21 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
|
H A D | curl_setopt_basic004.phpt | 17 $url = "{$host}/"; 21 curl_setopt($ch, CURLOPT_URL, $url); 33 curl_setopt($ch, CURLOPT_URL, $url);
|
/php-src/ext/standard/tests/url/ |
H A D | parse_url_error_002.phpt | 2 Test parse_url() function: url component specifier out of range 5 echo "*** Testing parse_url() : error conditions: url component specifier out of range ***\n"; 6 $url = 'http://secret:hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_re… 9 var_dump(parse_url($url, -1)); 13 parse_url($url, 99); 21 *** Testing parse_url() : error conditions: url component specifier out of range ***
|
/php-src/ext/standard/tests/general_functions/ |
H A D | url_rewriting_basic3.phpt | 25 <a href="//url-rewriter.com/foo.php"></a> 26 <a href="http://url-rewriter.com/foo.php"></a> 27 <a href="bad://url-rewriter.com/foo.php"></a> 28 <a href="//www.url-rewriter.com/foo.php"></a> 104 <a href="//url-rewriter.com/foo.php"></a> 105 <a href="http://url-rewriter.com/foo.php"></a> 106 <a href="bad://url-rewriter.com/foo.php"></a> 107 <a href="//www.url-rewriter.com/foo.php"></a> 144 <a href="bad://url-rewriter.com/foo.php"></a> 145 <a href="//www.url-rewriter.com/foo.php"></a> [all …]
|
H A D | url_rewriting_basic1.phpt | 25 <a href="//url-rewriter.com/foo.php"></a> 26 <a href="http://url-rewriter.com/foo.php"></a> 27 <a href="bad://url-rewriter.com/foo.php"></a> 28 <a href="//www.url-rewriter.com/foo.php"></a> 53 ini_set('url_rewriter.hosts', 'url-rewriter.com'); 98 <a href="bad://url-rewriter.com/foo.php"></a> 99 <a href="//www.url-rewriter.com/foo.php"></a> 138 <a href="//url-rewriter.com/foo.php"></a> 139 <a href="http://url-rewriter.com/foo.php"></a> 140 <a href="bad://url-rewriter.com/foo.php"></a> [all …]
|
H A D | url_rewriting_basic2.phpt | 25 <a href="//url-rewriter.com/foo.php"></a> 26 <a href="http://url-rewriter.com/foo.php"></a> 27 <a href="bad://url-rewriter.com/foo.php"></a> 28 <a href="//www.url-rewriter.com/foo.php"></a> 53 ini_set('url_rewriter.hosts', 'url-rewriter.com'); 109 <a href="bad://url-rewriter.com/foo.php"></a> 110 <a href="//www.url-rewriter.com/foo.php"></a> 151 <a href="bad://url-rewriter.com/foo.php"></a> 152 <a href="//www.url-rewriter.com/foo.php"></a> 189 <a href="bad://url-rewriter.com/foo.php"></a> [all …]
|
/php-src/ext/standard/tests/file/ |
H A D | bug43008.phpt | 2 Bug #43008 (php://filter uris ignore url encoded filternames and can't handle slashes) 9 $url = "" 16 var_dump(urlencode(file_get_contents($url)));
|
H A D | bug44034.phpt | 13 foreach($urls as $url) { 14 echo strtr($url, array("\r" => "\\r", "\n" => "\\n")) . "\n"; 15 var_dump(file($url, FILE_IGNORE_NEW_LINES));
|
/php-src/ext/filter/ |
H A D | logical_filters.c | 593 php_url *url; in php_filter_validate_url() local 605 if (url == NULL) { in php_filter_validate_url() 614 if (url->host == NULL) { in php_filter_validate_url() 628 php_url_free(url); in php_filter_validate_url() 634 url->scheme == NULL || in php_filter_validate_url() 636 …url->host == NULL && (!zend_string_equals_literal(url->scheme, "mailto") && !zend_string_equals_li… in php_filter_validate_url() 640 php_url_free(url); in php_filter_validate_url() 644 if ((url->user != NULL && !is_userinfo_valid(url->user)) in php_filter_validate_url() 645 || (url->pass != NULL && !is_userinfo_valid(url->pass)) in php_filter_validate_url() 647 php_url_free(url); in php_filter_validate_url() [all …]
|
/php-src/ext/standard/tests/http/ |
H A D | bug78719.phpt | 11 $url = str_repeat('*', 2000); 13 "data://text/plain,HTTP/1.0 302 Ok\r\nLocation: $url\r\n\r\nBody", 20 var_dump(stream_get_meta_data($stream)['wrapper_data'][1] === "Location: $url");
|
/php-src/main/streams/ |
H A D | plain_wrapper.c | 1221 url += sizeof("file://") - 1; in php_plain_files_url_stater() 1240 return VCWD_STAT(url, &ssb->sb); in php_plain_files_url_stater() 1248 url += sizeof("file://") - 1; in php_plain_files_unlink() 1255 ret = VCWD_UNLINK(url); in php_plain_files_unlink() 1475 url += sizeof("file://") - 1; in php_plain_files_rmdir() 1483 if (!php_win32_check_trailing_space(url, strlen(url))) { in php_plain_files_rmdir() 1489 if (VCWD_RMDIR(url) < 0) { in php_plain_files_rmdir() 1511 if (!php_win32_check_trailing_space(url, strlen(url))) { in php_plain_files_metadata() 1518 url += sizeof("file://") - 1; in php_plain_files_metadata() 1537 ret = VCWD_UTIME(url, newtime); in php_plain_files_metadata() [all …]
|