/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 | 126 const char *filep = strrchr(filename, '/'); in add_file_name_to_url() 127 char *file2 = strrchr(filep?filep:filename, '\\'); in add_file_name_to_url() 135 filep = filename; in add_file_name_to_url() 193 *filename = NULL; in get_url_file_name() 213 *filename = strdup(pc); in get_url_file_name() 215 if(!*filename) in get_url_file_name() 222 Curl_safefree(*filename); in get_url_file_name() 228 *filename = sanitized; in get_url_file_name() 241 Curl_safefree(*filename); in get_url_file_name() 242 *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 static FILE *execpath(const char *filename, char **pathp) in execpath() argument 66 if(strlen(filename) < remaining - 1) { in execpath() 90 if(!filename) { in parseconfig() 99 filename = pathalloc = curlrc; in parseconfig() 110 filename = fullp; in parseconfig() 115 if(strcmp(filename, "-")) in parseconfig() 116 file = fopen(filename, FOPEN_READTEXT); in parseconfig() 130 DEBUGASSERT(filename); in parseconfig() 259 if(!strcmp(filename, "-")) { in parseconfig() 260 filename = "<stdin>"; in parseconfig() [all …]
|
H A D | tool_formparse.c | 89 if(strcmp(filename, "-")) { in tool_mime_new_filedata() 246 const char *filename = NULL; in tool2curlparts() local 256 filename = m->filename; in tool2curlparts() 279 if(!filename) in tool2curlparts() 280 filename = "-"; in tool2curlparts() 294 if(!ret && filename) in tool2curlparts() 469 char *filename = NULL; in get_param_part() local 531 if(filename == tp) in get_param_part() 637 *pfilename = filename; in get_param_part() 638 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); 38 CURLcode get_url_file_name(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 27 The remote filename to use for saving is extracted from the given URL, nothing 29 able to choose the filename refer to --remote-header-name which can be used in 30 addition to this option. If the server chooses a filename and that name 33 There is no URL decoding done on the filename. If it has %20 or other URL 34 encoded parts of the name, they end up as-is as filename.
|
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
|
H A D | hsts.md | 5 Arg: <filename> 19 Enable HSTS for the transfer. If the filename points to an existing HSTS cache 21 filename again if it has been modified. 28 Specify a "" filename (zero length) to avoid loading/saving and make curl just
|
/curl/docs/libcurl/ |
H A D | curl_mime_filename.md | 19 curl_mime_filename - set a mime part's remote filename 27 const char *filename); 32 curl_mime_filename(3) sets a mime part's remote filename. When remote 33 filename is set, content data is processed as a file, whatever is the part's 34 content source. A part's remote filename is transmitted to the server in the 37 *part* is the part's handle to assign the remote filename to. 39 *filename* points to the null-terminated filename string; it may be set 40 to NULL to remove a previously attached remote filename. 42 The remote filename string is copied into the part, thus the associated
|
/curl/lib/ |
H A D | system_win32.c | 205 HMODULE Curl_load_library(LPCTSTR filename) in Curl_load_library() argument 226 if(_tcspbrk(filename, TEXT("\\/"))) { in Curl_load_library() 229 pLoadLibraryEx(filename, NULL, LOAD_WITH_ALTERED_SEARCH_PATH) : in Curl_load_library() 230 LoadLibrary(filename); in Curl_load_library() 237 hModule = pLoadLibraryEx(filename, NULL, LOAD_LIBRARY_SEARCH_SYSTEM32); in Curl_load_library() 245 size_t filenamelen = _tcslen(filename); in Curl_load_library() 250 _tcscpy(path + _tcslen(path), filename); in Curl_load_library() 265 (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 | 207 char filename[256]; in test2fopen() local 209 msnprintf(filename, sizeof(filename), ALTTEST_DATA_PATH, logdir, testno); in test2fopen() 210 stream = fopen(filename, "rb"); in test2fopen() 215 msnprintf(filename, sizeof(filename), TEST_DATA_PATH, path, testno); in test2fopen() 216 stream = fopen(filename, "rb"); in test2fopen() 295 int write_pidfile(const char *filename) in write_pidfile() argument 301 pidfile = fopen(filename, "wb"); in write_pidfile() 315 FILE *portfile = fopen(filename, "wb"); in write_portfile() 333 lockfile = fopen(filename, "wb"); in set_advisor_read_lock() 337 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, ">", $filena… 45 … $filename = "%LOGDIR/exist%TESTNUMBER.$i"; open(FH, "<", $filename) or die $!; (<FH> eq "to stay …
|
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 | 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 | 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()
|