/curl/tests/ |
H A D | pathhelp.pm | 201 return $path if ($path eq ''); 300 $path = Cwd::abs_path($path); 384 $path = $cur_dir . '/' . $path; 388 $path = normalize_path($path); 420 $path = Cwd::abs_path($path); 469 $path = normalize_path($path); 494 $path = normalize_path($path); 536 $path = $cur_dir . '/' . $path; 554 return $path if $path eq ''; 619 return $path if $path eq ''; [all …]
|
/curl/src/ |
H A D | tool_bname.c | 32 char *tool_basename(char *path) in tool_basename() argument 37 s1 = strrchr(path, '/'); in tool_basename() 38 s2 = strrchr(path, '\\'); in tool_basename() 41 path = (s1 > s2) ? s1 + 1 : s2 + 1; in tool_basename() 44 path = s1 + 1; in tool_basename() 46 path = s2 + 1; in tool_basename() 48 return path; in tool_basename()
|
H A D | tool_operhlp.c | 97 char *path = NULL; in add_file_name_to_url() local 107 uerr = curl_url_get(uh, CURLUPART_PATH, &path, 0); in add_file_name_to_url() 115 curl_free(path); in add_file_name_to_url() 119 ptr = strrchr(path, '/'); in add_file_name_to_url() 144 newpath = aprintf("%s%s", path, encfile); in add_file_name_to_url() 147 newpath = aprintf("%s/%s", path, encfile); in add_file_name_to_url() 175 curl_free(path); in add_file_name_to_url() 187 char *path = NULL; in get_url_file_name() local 201 pc = strrchr(path, '/'); in get_url_file_name() 202 pc2 = strrchr(pc ? pc + 1 : path, '\\'); in get_url_file_name() [all …]
|
H A D | tool_findfile.c | 81 char *path = strdup(c); in checkhome() local 84 return path; in checkhome() 115 char *path; in findfile() local 140 path = checkhome(home, filename, dotscore ? dotscore - 1 : 0); in findfile() 142 if(path) in findfile() 143 return path; in findfile()
|
/curl/tests/http/testenv/ |
H A D | client.py | 51 self.path = os.path.join(env.project_dir, f'tests/http/clients/{name}') 71 return os.path.exists(self.path) 76 def _rmf(self, path): argument 77 if os.path.exists(path): 78 return os.remove(path) 80 def _rmrf(self, path): argument 81 if os.path.exists(path): 84 def _mkpath(self, path): argument 85 if not os.path.exists(path): 86 return os.makedirs(path) [all …]
|
H A D | httpd.py | 89 if not os.path.exists(self._mods_dir): 103 return os.path.exists(self._cmd) 197 def _rmf(self, path): argument 198 if os.path.exists(path): 199 return os.remove(path) 201 def _mkpath(self, path): argument 202 if not os.path.exists(path): 203 return os.makedirs(path) 216 self._mkpath(os.path.join(self._docs_dir, 'two')) 238 if os.path.exists(os.path.join(self._mods_dir, f'mod_{m}.so')): [all …]
|
H A D | caddy.py | 46 self._caddy_dir = os.path.join(env.gen_dir, 'caddy') 47 self._docs_dir = os.path.join(self._caddy_dir, 'docs') 48 self._conf_file = os.path.join(self._caddy_dir, 'Caddyfile') 49 self._error_log = os.path.join(self._caddy_dir, 'caddy.log') 50 self._tmp_dir = os.path.join(self._caddy_dir, 'tmp') 133 def _rmf(self, path): argument 134 if os.path.exists(path): 135 return os.remove(path) 137 def _mkpath(self, path): argument 138 if not os.path.exists(path): [all …]
|
/curl/lib/ |
H A D | curl_path.c | 93 *path = Curl_dyn_ptr(&npath); in Curl_getworkingpath() 96 *path = working_path; in Curl_getworkingpath() 130 *path = NULL; in Curl_get_pathname() 137 *path = malloc(fullPathLength); in Curl_get_pathname() 138 if(!*path) in Curl_get_pathname() 149 (*path)[j] = '\0'; in Curl_get_pathname() 162 (*path)[j++] = cp[i]; in Curl_get_pathname() 181 strcpy(*path, homedir); in Curl_get_pathname() 184 (*path)[pathLength] = '\0'; in Curl_get_pathname() 190 (*path)[pathLength] = '\0'; in Curl_get_pathname() [all …]
|
H A D | dict.c | 182 char *path; in dict_do() local 187 result = Curl_urldecode(data->state.up.path, 0, &path, NULL, REJECT_CTRL); in dict_do() 191 if(strncasecompare(path, DICT_MATCH, sizeof(DICT_MATCH)-1) || in dict_do() 192 strncasecompare(path, DICT_MATCH2, sizeof(DICT_MATCH2)-1) || in dict_do() 193 strncasecompare(path, DICT_MATCH3, sizeof(DICT_MATCH3)-1)) { in dict_do() 195 word = strchr(path, ':'); in dict_do() 246 else if(strncasecompare(path, DICT_DEFINE, sizeof(DICT_DEFINE)-1) || in dict_do() 247 strncasecompare(path, DICT_DEFINE2, sizeof(DICT_DEFINE2)-1) || in dict_do() 250 word = strchr(path, ':'); in dict_do() 294 ppath = strchr(path, '/'); in dict_do() [all …]
|
H A D | system_win32.c | 246 TCHAR *path = malloc(sizeof(TCHAR) * (systemdirlen + 1 + filenamelen)); in Curl_load_library() local 247 if(path && GetSystemDirectory(path, systemdirlen)) { in Curl_load_library() 249 _tcscpy(path + _tcslen(path), TEXT("\\")); in Curl_load_library() 250 _tcscpy(path + _tcslen(path), filename); in Curl_load_library() 255 pLoadLibraryEx(path, NULL, LOAD_WITH_ALTERED_SEARCH_PATH) : in Curl_load_library() 256 LoadLibrary(path); in Curl_load_library() 259 free(path); in Curl_load_library()
|
H A D | curl_multibyte.c | 137 int curlx_win32_stat(const char *path, struct_stat *buffer) in curlx_win32_stat() argument 141 wchar_t *path_w = curlx_convert_UTF8_to_wchar(path); in curlx_win32_stat() 155 return _stat(path, buffer); in curlx_win32_stat() 157 return _stati64(path, buffer); in curlx_win32_stat() 162 int curlx_win32_access(const char *path, int mode) in curlx_win32_access() argument 166 wchar_t *path_w = curlx_convert_UTF8_to_wchar(path); in curlx_win32_access() 175 return _access(path, mode); in curlx_win32_access()
|
H A D | fopen.c | 64 static char *dirslash(const char *path) in dirslash() argument 68 DEBUGASSERT(path); in dirslash() 70 n = strlen(path); in dirslash() 73 while(n && !IS_SEP(path[n-1])) in dirslash() 76 while(n && IS_SEP(path[n-1])) in dirslash() 79 if(Curl_dyn_addn(&out, path, n)) in dirslash()
|
/curl/docs/examples/ |
H A D | parseurl.c | 40 char *path; in main() local 59 uc = curl_url_get(h, CURLUPART_PATH, &path, 0); in main() 61 printf("Path: %s\n", path); in main() 62 curl_free(path); in main() 71 uc = curl_url_get(h, CURLUPART_PATH, &path, 0); in main() 73 printf("Path: %s\n", path); in main() 74 curl_free(path); in main()
|
/curl/tests/data/ |
H A D | test31 | 25 Set-Cookie: blankdomain=sure; domain=; path=/ 27 Set-Cookie: foobar=name; domain=anything.com; path=/ ; secure 28 Set-Cookie:ismatch=this ; domain=test31.curl; path=/silly/ 29 Set-Cookie: overwrite=this ; domain=test31.curl; path=/overwrite/ 30 Set-Cookie: overwrite=this2 ; domain=test31.curl; path=/overwrite 53 Set-Cookie: partmatch=present; domain=test31.curl ; path=/; 68 Set-Cookie: magic=yessir; path=/silly/; HttpOnly 76 Set-Cookie: foobar=name; domain=anything.com; path=/ ; secure 77 Set-Cookie: ismatch=this ; domain=test31.curl; path=/silly/ 102 Set-Cookie: partmatch=present; domain=test31.curl ; path=/; [all …]
|
H A D | test1415 | 22 Set-Cookie: test1value=test1; domain=example.com; path=/; 24 Set-Cookie: test2value=test2; expires=Thursday, 31-Dec-2525 00:00:00 GMT; domain=example.com; path=… 25 Set-Cookie: test3value=test3; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/; 26 Set-Cookie: test4value=test4; expires=Thursday, 31-Dec-2525 00:00:00 GMT; domain=example.com; path=… 27 Set-Cookie: test5value=test5; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/; 28 Set-Cookie: test6value=test6; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/; 29 Set-Cookie: test7value=test7; expires=Thursday, 31-Dec-2525 00:00:00 GMT; domain=example.com; path=… 30 Set-Cookie: test8value=test8; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/; 33 Set-Cookie: test3value=test3; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/; 35 Set-Cookie: test5value=test5; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/; [all …]
|
H A D | test1671 | 21 Set-Cookie: firstcookie=want1; path=/ 23 Set-Cookie: 2cookie=want2; path=/ 25 Set-Cookie: cookie3=want3; path=/ 66 "set-cookie":["firstcookie=want1; path=/","2cookie=want2; path=/","cookie3=want3; path=/"],
|
H A D | test7 | 19 Set-Cookie: foobar=name; domain=127.0.0.1; path=/; 20 Set-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/"; 21 Set-Cookie: partmatch=present; domain=.0.0.1; path=/; 54 Set-Cookie: foobar=name; domain=127.0.0.1; path=/; 55 Set-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/"; 56 Set-Cookie: partmatch=present; domain=.0.0.1; path=/;
|
/curl/tests/libtest/ |
H A D | testutil.c | 139 TCHAR *path; in win32_load_system_library() local 146 path = malloc(sizeof(TCHAR) * (systemdirlen + 1 + filenamelen)); in win32_load_system_library() 147 if(!path) in win32_load_system_library() 151 written = GetSystemDirectory(path, (unsigned int)systemdirlen); in win32_load_system_library() 155 if(path[written - 1] != _T('\\')) in win32_load_system_library() 156 path[written++] = _T('\\'); in win32_load_system_library() 158 _tcscpy(path + written, filename); in win32_load_system_library() 160 return LoadLibrary(path); in win32_load_system_library()
|
/curl/docs/cmdline-opts/ |
H A D | path-as-is.md | 4 Long: path-as-is 5 Help: Do not squash .. sequences in URL path 12 - --path-as-is https://example.com/../../etc/passwd 15 # `--path-as-is` 17 Do not handle sequences of /../ or /./ in the given URL path. Normally curl
|
/curl/tests/http/ |
H A D | test_11_unix.py | 40 def __init__(self, path): argument 41 self._uds_path = path 45 def path(self): member in UDSFaker 56 if os.path.exists(self._uds_path): 90 uds_path = os.path.join(env.gen_dir, 'uds_11.sock') 91 faker = UDSFaker(path=uds_path) 102 '--unix-socket', uds_faker.path, 113 '--unix-socket', uds_faker.path, 125 '--unix-socket', uds_faker.path,
|
H A D | test_20_websockets.py | 56 def _mkpath(self, path): argument 57 if not os.path.exists(path): 58 return os.makedirs(path) 60 def _rmrf(self, path): argument 61 if os.path.exists(path): 62 return shutil.rmtree(path) 66 run_dir = os.path.join(env.gen_dir, 'ws-echo-server') 67 err_file = os.path.join(run_dir, 'stderr') 72 cmd = os.path.join(env.project_dir,
|
/curl/docs/libcurl/opts/ |
H A D | CURLINFO_FTP_ENTRY_PATH.md | 16 CURLINFO_FTP_ENTRY_PATH - get entry path in FTP server 23 CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_FTP_ENTRY_PATH, char **path); 29 path of the entry path. That is the initial path libcurl ended up in when 33 The **path** pointer is NULL or points to private memory. You MUST NOT free 50 /* extract the entry path */ 54 printf("Entry path was: %s\n", ep);
|
H A D | CURLINFO_CAINFO.md | 19 CURLINFO_CAINFO - get the default built-in CA certificate path 26 CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_CAINFO, char **path); 32 string holding the default built-in path used for the CURLOPT_CAINFO(3) 39 This is a path identifying a single file containing CA certificates. 41 The **path** pointer is set to NULL if there is no default path. 53 printf("default ca info path: %s\n", cainfo);
|
H A D | CURLINFO_CAPATH.md | 22 CURLINFO_CAPATH - get the default built-in CA path string 29 CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_CAPATH, char **path); 35 string holding the default built-in path used for the CURLOPT_CAPATH(3) 42 This is a path identifying a directory. 44 The **path** pointer is set to NULL if there is no default path. 56 printf("default ca path: %s\n", capath);
|
H A D | CURLOPT_UNIX_SOCKET_PATH.md | 24 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_UNIX_SOCKET_PATH, char *path); 30 path to *path*. If *path* is NULL, then Unix domain sockets are 37 The maximum path length on Cygwin, Linux and Solaris is 107. On other platforms 72 char path[108]; 73 snprintf(path, sizeof(path), "/proc/self/fd/%d/httpd.sock", dirfd); 74 curl_easy_setopt(curl_handle, CURLOPT_UNIX_SOCKET_PATH, path);
|