Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 376) sorted by relevance

12345678910>>...16

/curl/tests/
H A Dpathhelp.pm117 my ($path) = @_;
120 return Cwd::abs_path($path) if !os_is_win();
123 return $path if ($path eq '');
127 $res = Cygwin::posix_to_win_path(Cwd::abs_path($path));
129 elsif($path =~ m{^/(cygdrive/)?([a-z])/(.*)}) {
133 $res = Cwd::abs_path($path);
146 my ($path) = @_;
149 return Cwd::abs_path($path) if !os_is_win();
153 $res = Cygwin::win_to_posix_path($path, 1);
156 $res = Cwd::abs_path($path);
/curl/src/
H A Dtool_bname.c32 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 Dtool_operhlp.c95 char *path = NULL; in add_file_name_to_url() local
105 uerr = curl_url_get(uh, CURLUPART_PATH, &path, 0); in add_file_name_to_url()
113 curl_free(path); in add_file_name_to_url()
117 ptr = strrchr(path, '/'); in add_file_name_to_url()
142 newpath = aprintf("%s%s", path, encfile); in add_file_name_to_url()
145 newpath = aprintf("%s/%s", path, encfile); in add_file_name_to_url()
173 curl_free(path); in add_file_name_to_url()
185 char *path = NULL; in get_url_file_name() local
202 pc = strrchr(path, '/'); in get_url_file_name()
203 pc2 = strrchr(pc ? pc + 1 : path, '\\'); in get_url_file_name()
[all …]
H A Dtool_findfile.c81 char *path = strdup(c); in checkhome() local
84 return path; in checkhome()
114 char *path; in findfile() local
137 path = checkhome(home, filename, dotscore ? dotscore - 1 : 0); in findfile()
139 if(path) in findfile()
140 return path; in findfile()
/curl/tests/http/testenv/
H A Dclient.py47 self.path = os.path.join(env.build_dir, f'tests/http/clients/{name}')
67 return os.path.exists(self.path)
72 def _rmf(self, path): argument
73 if os.path.exists(path):
74 return os.remove(path)
76 def _rmrf(self, path): argument
77 if os.path.exists(path):
80 def _mkpath(self, path): argument
81 if not os.path.exists(path):
82 return os.makedirs(path)
[all …]
H A Dhttpd.py91 if not os.path.exists(self._mods_dir):
105 return os.path.exists(self._cmd)
206 def _rmf(self, path): argument
207 if os.path.exists(path):
208 return os.remove(path)
210 def _mkpath(self, path): argument
211 if not os.path.exists(path):
212 return os.makedirs(path)
228 self._mkpath(os.path.join(self._docs_dir, 'two'))
250 if os.path.exists(os.path.join(self._mods_dir, f'mod_{m}.so')):
[all …]
H A Dvsftpd.py54 self._vsftpd_dir = os.path.join(env.gen_dir, name)
55 self._run_dir = os.path.join(self._vsftpd_dir, 'run')
56 self._docs_dir = os.path.join(self._vsftpd_dir, 'docs')
57 self._tmp_dir = os.path.join(self._vsftpd_dir, 'tmp')
81 return os.path.exists(self._cmd)
155 def _rmf(self, path): argument
156 if os.path.exists(path):
157 return os.remove(path)
159 def _mkpath(self, path): argument
160 if not os.path.exists(path):
[all …]
H A Dcaddy.py46 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/docs/examples/
H A Dparseurl.c40 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 Dtest3125 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:ISMATCH=this ; domain=test31.curl; path=/silly/
54 Set-Cookie: partmatch=present; domain=test31.curl ; path=/;
69 Set-Cookie: magic=yessir; path=/silly/; HttpOnly
77 Set-Cookie: foobar=name; domain=anything.com; path=/ ; secure
78 Set-Cookie: ismatch=this ; domain=test31.curl; path=/silly/
79 Set-Cookie:ISMATCH=this ; domain=test31.curl; path=/silly/
104 Set-Cookie: partmatch=present; domain=test31.curl ; path=/;
[all …]
H A Dtest141522 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 Dtest719 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=/;
H A Dtest167121 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=/"],
/curl/lib/
H A Dsystem_win32.c217 TCHAR *path = malloc(sizeof(TCHAR) * (systemdirlen + 1 + filenamelen)); in Curl_load_library() local
218 if(path && GetSystemDirectory(path, systemdirlen)) { in Curl_load_library()
220 _tcscpy(path + _tcslen(path), TEXT("\\")); in Curl_load_library()
221 _tcscpy(path + _tcslen(path), filename); in Curl_load_library()
226 pLoadLibraryEx(path, NULL, LOAD_WITH_ALTERED_SEARCH_PATH) : in Curl_load_library()
227 LoadLibrary(path); in Curl_load_library()
230 free(path); in Curl_load_library()
H A Ddict.c182 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 …]
/curl/tests/libtest/
H A Dtestutil.c143 TCHAR *path; in win32_load_system_library()
150 path = malloc(sizeof(TCHAR) * (systemdirlen + 1 + filenamelen)); in win32_load_system_library()
151 if(!path) in win32_load_system_library()
155 written = GetSystemDirectory(path, (unsigned int)systemdirlen); in win32_load_system_library()
159 if(path[written - 1] != _T('\\')) in win32_load_system_library()
160 path[written++] = _T('\\'); in win32_load_system_library()
162 _tcscpy(path + written, filename); in win32_load_system_library()
164 return LoadLibrary(path); in win32_load_system_library()
/curl/tests/http/
H A Dtest_31_vsftpds.py58 fpath = os.path.join(docs_dir, fname)
69 if os.path.exists(vsftpds.docs_dir):
142 def _rmf(self, path): argument
143 if os.path.exists(path):
144 return os.remove(path)
182 srcsize = os.path.getsize(srcfile)
191 dstsize = os.path.getsize(dstfile)
235 assert os.path.exists(dstfile)
244 assert os.path.exists(dfile)
256 assert os.path.exists(srcfile)
[all …]
H A Dtest_30_vsftpd.py51 fpath = os.path.join(docs_dir, fname)
62 if os.path.exists(vsftpd.docs_dir):
64 if not os.path.exists(vsftpd.docs_dir):
126 srcfile = os.path.join(env.gen_dir, docname)
135 def _rmf(self, path): argument
136 if os.path.exists(path):
137 return os.remove(path)
156 srcfile = os.path.join(env.gen_dir, docname)
196 assert os.path.exists(dfile)
208 assert os.path.exists(srcfile)
[all …]
H A Dtest_11_unix.py42 def __init__(self, path): argument
43 self._uds_path = path
48 def path(self): member in UDSFaker
59 if os.path.exists(self._uds_path):
95 uds_path = os.path.join(env.gen_dir, 'uds_11.sock')
96 faker = UDSFaker(path=uds_path)
107 '--unix-socket', uds_faker.path,
118 '--unix-socket', uds_faker.path,
130 '--unix-socket', uds_faker.path,
H A Dtest_20_websockets.py56 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/cmdline-opts/
H A Dpath-as-is.md4 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/docs/libcurl/opts/
H A DCURLINFO_FTP_ENTRY_PATH.md17 CURLINFO_FTP_ENTRY_PATH - get entry path in FTP server
24 CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_FTP_ENTRY_PATH, char **path);
30 path of the entry path. That is the initial path libcurl ended up in when
34 The **path** pointer is NULL or points to private memory. You MUST NOT free
53 /* extract the entry path */
57 printf("Entry path was: %s\n", ep);
H A DCURLINFO_CAINFO.md20 CURLINFO_CAINFO - get the default built-in CA certificate path
27 CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_CAINFO, char **path);
33 string holding the default built-in path used for the CURLOPT_CAINFO(3)
40 This is a path identifying a single file containing CA certificates.
42 The **path** pointer is set to NULL if there is no default path.
56 printf("default ca info path: %s\n", cainfo);
H A DCURLINFO_CAPATH.md23 CURLINFO_CAPATH - get the default built-in CA path string
30 CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_CAPATH, char **path);
36 string holding the default built-in path used for the CURLOPT_CAPATH(3)
43 This is a path identifying a directory.
45 The **path** pointer is set to NULL if there is no default path.
59 printf("default ca path: %s\n", capath);
/curl/tests/unit/
H A Dunit2604.c90 char *path; variable
92 CURLcode result = Curl_get_pathname(&cp, &path, list[i].home);
105 if(path && strcmp(path, list[i].expect)) {
107 path, list[i].expect);
110 curl_free(path);

Completed in 59 milliseconds

12345678910>>...16