/curl/.github/scripts/ |
H A D | spacecheck.pl | 59 my ($filename, @masklist) = @_; 62 if ($filename =~ $mask) { 94 while (my $filename = <$git_ls_files>) { 95 chomp $filename; 97 open my $fh, '<', $filename or die "Cannot open '$filename': $!"; 103 if (!fn_match($filename, @tabs) && 111 !fn_match($filename, @mixed_eol)) { 116 fn_match($filename, @need_crlf)) { 121 !fn_match($filename, @need_crlf) && 122 !fn_match($filename, @mixed_eol)) { [all …]
|
/curl/src/ |
H A D | tool_stderr.c | 39 void tool_set_stderr_file(struct GlobalConfig *global, char *filename) in tool_set_stderr_file() argument 43 if(!filename) in tool_set_stderr_file() 46 if(!strcmp(filename, "-")) { in tool_set_stderr_file() 53 fp = fopen(filename, FOPEN_WRITETEXT); in tool_set_stderr_file() 55 warnf(global, "Warning: Failed to open %s", filename); in tool_set_stderr_file() 63 fp = freopen(filename, FOPEN_WRITETEXT, stderr); in tool_set_stderr_file()
|
H A D | tool_operhlp.c | 124 const char *filep = strrchr(filename, '/'); in add_file_name_to_url() 133 filep = filename; in add_file_name_to_url() 191 *filename = NULL; in get_url_file_name() 222 *filename = strdup(pc); in get_url_file_name() 224 if(!*filename) in get_url_file_name() 231 Curl_safefree(*filename); in get_url_file_name() 237 *filename = sanitized; in get_url_file_name() 249 char *alt = aprintf("%s/%s", tdir, *filename); in get_url_file_name() 250 Curl_safefree(*filename); in get_url_file_name() 251 *filename = alt; in get_url_file_name() [all …]
|
H A D | tool_filetime.c | 36 int getfiletime(const char *filename, struct GlobalConfig *global, in getfiletime() argument 46 TCHAR *tchar_filename = curlx_convert_UTF8_to_tchar((char *)filename); in getfiletime() 80 if(-1 != stat(filename, &statbuf)) { in getfiletime() 91 void setfiletime(curl_off_t filetime, const char *filename, in setfiletime() argument 100 TCHAR *tchar_filename = curlx_convert_UTF8_to_tchar((char *)filename); in setfiletime() 139 if(utimes(filename, times)) { in setfiletime() 141 " on '%s': %s", filetime, filename, strerror(errno)); in setfiletime() 148 if(utime(filename, ×)) { in setfiletime() 150 " on '%s': %s", filetime, filename, strerror(errno)); in setfiletime()
|
H A D | tool_parsecfg.c | 50 int parseconfig(const char *filename, struct GlobalConfig *global) in parseconfig() argument 58 if(!filename) { in parseconfig() 67 filename = pathalloc = curlrc; in parseconfig() 78 filename = fullp; in parseconfig() 83 if(strcmp(filename, "-")) in parseconfig() 84 file = fopen(filename, FOPEN_READTEXT); in parseconfig() 98 DEBUGASSERT(filename); in parseconfig() 181 "whitespace", filename, lineno, option); in parseconfig() 227 if(!strcmp(filename, "-")) { in parseconfig() 228 filename = "<stdin>"; in parseconfig() [all …]
|
H A D | tool_formparse.c | 87 if(strcmp(filename, "-")) { in tool_mime_new_filedata() 244 const char *filename = NULL; in tool2curlparts() local 254 filename = m->filename; in tool2curlparts() 277 if(!filename) in tool2curlparts() 278 filename = "-"; in tool2curlparts() 292 if(!ret && filename) in tool2curlparts() 467 char *filename = NULL; in get_param_part() local 529 if(filename == tp) in get_param_part() 635 *pfilename = filename; in get_param_part() 636 else if(filename) in get_param_part() [all …]
|
H A D | tool_filetime.h | 30 int getfiletime(const char *filename, struct GlobalConfig *global, 35 void setfiletime(curl_off_t filetime, const char *filename,
|
H A D | tool_operhlp.h | 36 CURLcode add_file_name_to_url(CURL *curl, char **inurlp, const char *filename); 39 char **filename, const char *url);
|
/curl/tests/ |
H A D | sshhelp.pm | 155 my ($filename, @arr) = @_; 158 if(!$filename) { 161 elsif(open(my $textfh, ">", $filename)) { 181 my $filename = $_[0]; 182 print "=== Start of file $filename\n"; 183 if(open(my $displayfh, "<", "$filename")) { 189 print "=== End of file $filename\n"; 284 my $filename = $_[0]; 288 return find_file($filename, @spath); 296 my $filename = $_[0]; [all …]
|
H A D | util.py | 40 def __init__(self, filename): argument 42 self.filename = os.path.abspath(filename) 46 with open(self.filename, "a") as fp: 73 filename = os.path.join(self.data_folder, 76 log.debug("Parsing file %s", filename) 78 with open(filename, "rb") as f:
|
/curl/docs/cmdline-opts/ |
H A D | remote-header-name.md | 7 Help: Use the header-provided filename 20 filename instead of extracting a filename from the URL. If the server-provided 21 filename contains a path, that is stripped off before the filename is used. 26 If the server specifies a filename and a file with that name already exists in 29 filename then this option has no effect. 31 There is no attempt to decode %-sequences (yet) in the provided filename, so 34 This feature uses the name from the `filename` field, it does not yet support 35 the `filename*` field (filenames with explicit character sets).
|
H A D | remote-name.md | 15 - -O https://example.com/filename 16 - -O https://example.com/filename -O https://example.com/file2 28 The remote filename to use for saving is extracted from the given URL, nothing 30 able to choose the filename refer to --remote-header-name which can be used in 31 addition to this option. If the server chooses a filename and that name 34 There is no URL decoding done on the filename. If it has %20 or other URL 35 encoded parts of the name, they end up as-is as filename. 40 which means that there is no filename part in the URL. Starting in 8.10.0, 41 curl sets the filename to the last directory part of the URL or if that also
|
H A D | alt-svc.md | 5 Arg: <filename> 20 Enable the alt-svc parser. If the filename points to an existing alt-svc cache 22 filename again if it has been modified. 24 Specify a "" filename (zero length) to avoid loading/saving and make curl just
|
/curl/docs/libcurl/ |
H A D | curl_mime_filename.md | 20 curl_mime_filename - set a mime part's remote filename 28 const char *filename); 33 curl_mime_filename(3) sets a mime part's remote filename. When remote 34 filename is set, content data is processed as a file, whatever is the part's 35 content source. A part's remote filename is transmitted to the server in the 38 *part* is the part's handle to assign the remote filename to. 40 *filename* points to the null-terminated filename string; it may be set 41 to NULL to remove a previously attached remote filename. 43 The remote filename string is copied into the part, thus the associated
|
/curl/lib/ |
H A D | system_win32.c | 176 HMODULE Curl_load_library(LPCTSTR filename) in Curl_load_library() argument 197 if(_tcspbrk(filename, TEXT("\\/"))) { in Curl_load_library() 200 pLoadLibraryEx(filename, NULL, LOAD_WITH_ALTERED_SEARCH_PATH) : in Curl_load_library() 201 LoadLibrary(filename); in Curl_load_library() 208 hModule = pLoadLibraryEx(filename, NULL, LOAD_LIBRARY_SEARCH_SYSTEM32); in Curl_load_library() 216 size_t filenamelen = _tcslen(filename); in Curl_load_library() 221 _tcscpy(path + _tcslen(path), filename); in Curl_load_library() 236 (void)filename; in Curl_load_library()
|
H A D | curl_multibyte.c | 91 int curlx_win32_open(const char *filename, int oflag, ...) in curlx_win32_open() argument 97 wchar_t *filename_w = curlx_convert_UTF8_to_wchar(filename); in curlx_win32_open() 115 return (_open)(filename, oflag, pmode); in curlx_win32_open() 119 FILE *curlx_win32_fopen(const char *filename, const char *mode) in curlx_win32_fopen() argument 123 wchar_t *filename_w = curlx_convert_UTF8_to_wchar(filename); in curlx_win32_fopen() 133 return (fopen)(filename, mode); in curlx_win32_fopen()
|
/curl/tests/server/ |
H A D | util.h | 67 int write_pidfile(const char *filename); 68 int write_portfile(const char *filename, int port); 69 void set_advisor_read_lock(const char *filename); 70 void clear_advisor_read_lock(const char *filename);
|
H A D | util.c | 206 char filename[256]; in test2fopen() local 208 msnprintf(filename, sizeof(filename), ALTTEST_DATA_PATH, logdir, testno); in test2fopen() 209 stream = fopen(filename, "rb"); in test2fopen() 214 msnprintf(filename, sizeof(filename), TEST_DATA_PATH, path, testno); in test2fopen() 215 stream = fopen(filename, "rb"); in test2fopen() 294 int write_pidfile(const char *filename) in write_pidfile() argument 300 pidfile = fopen(filename, "wb"); in write_pidfile() 314 FILE *portfile = fopen(filename, "wb"); in write_portfile() 332 lockfile = fopen(filename, "wb"); in set_advisor_read_lock() 336 filename, error, strerror(error)); in set_advisor_read_lock() [all …]
|
/curl/tests/data/ |
H A D | test1683 | 42 %PERL -e 'for my $i ((1..100)) { my $filename = "%LOGDIR/exist%TESTNUMBER.$i"; open(FH, ">", $filen… 56 … $filename = "%LOGDIR/exist%TESTNUMBER.$i"; open(FH, "<", $filename) or die $!; (<FH> eq "to stay …
|
H A D | test1133 | 29 HTTP RFC1867-type formposting with filename/data contains ',', ';', '"' 32 …filename=\"faker,and;.txt\"" -F 'file2=@"%LOGDIR/test%TESTNUMBER,and;.txt"' -F 'file3=@"%LOGDIR/te… 57 Content-Disposition: form-data; name="file"; filename="faker,and;.txt" 66 Content-Disposition: form-data; name="file2"; filename="test%TESTNUMBER,and;.txt" 78 Content-Disposition: attachment; filename="test%TESTNUMBER,and;.txt" 86 Content-Disposition: attachment; filename="test%TESTNUMBER,and;.txt" 98 Content-Disposition: form-data; name="b"; filename="param_b"
|
H A D | test39 | 29 HTTP RFC1867-type formposting with filename= and type= 32 …filename=fakerfile" -F file2=@%LOGDIR/test%TESTNUMBER.txt -F "file3=@\"%LOGDIR/test%TESTNUMBER.txt… 73 Content-Disposition: form-data; name="file"; filename="fakerfile" 82 Content-Disposition: form-data; name="file2"; filename="test%TESTNUMBER.txt" 91 Content-Disposition: form-data; name="file3"; filename="f\\ak\\er,\an\d;.t%22xt" 100 Content-Disposition: form-data; name="file4"; filename="A\AA%22%22\%22ZZZ"
|
H A D | test1189 | 29 Multipart formposting with backslash-escaping of name= and filename= 32 …filename=fakerfile" -F file2=@%LOGDIR/test%TESTNUMBER.txt -F "file3=@\"%LOGDIR/test%TESTNUMBER.txt… 73 Content-Disposition: form-data; name="file"; filename="fakerfile" 82 Content-Disposition: form-data; name="file2"; filename="test%TESTNUMBER.txt" 91 Content-Disposition: form-data; name="file3"; filename="f\\\\ak\\\\er,\\an\\d;.t\"xt" 100 Content-Disposition: form-data; name="file4"; filename="A\\AA\"\"\\\"ZZZ"
|
H A D | test2073 | 40 …TIP:%HTTPPORT/%TESTNUMBER -F 'name=a;filename=a.pdf' --next http://%HOSTIP:%HTTPPORT/%TESTNUMBER -… 57 Content-Disposition: form-data; name="name"; filename="a.pdf" 67 Content-Disposition: form-data; name="name"; filename="b.jpg"
|
H A D | test1158 | 29 HTTP RFC1867-type formposting with filename containing '"' 32 …t/%TESTNUMBER -F "file=@\"%LOGDIR/test%TESTNUMBER\\\".txt\";type=mo/foo;filename=\"test%TESTNUMBER… 60 Content-Disposition: form-data; name="file"; filename="test%TESTNUMBER%22.txt" 69 Content-Disposition: form-data; name="file2"; filename="test%TESTNUMBER%22.txt" 81 Content-Disposition: attachment; filename="test%TESTNUMBER%22.txt" 89 Content-Disposition: attachment; filename="test%TESTNUMBER%22.txt"
|
/curl/docs/examples/ |
H A D | ftpgetinfo.c | 50 const char *filename = strrchr(ftpurl, '/') + 1; in main() local 73 printf("filetime %s: %s", filename, ctime(&file_time)); in main() 79 filename, filesize); in main()
|