Home
last modified time | relevance | path

Searched refs:filename (Results 26 – 50 of 237) sorted by relevance

12345678910

/curl/tests/libtest/
H A Dtestutil.c134 HMODULE win32_load_system_library(const TCHAR *filename) in win32_load_system_library() argument
137 (void)filename; in win32_load_system_library()
140 size_t filenamelen = _tcslen(filename); in win32_load_system_library()
162 _tcscpy(path + written, filename); in win32_load_system_library()
H A Dlib678.c30 static int loadfile(const char *filename, void **filedata, size_t *filesize) in loadfile() argument
34 if(filename) { in loadfile()
35 FILE *fInCert = fopen(filename, "rb"); in loadfile()
/curl/tests/
H A Dprocesshelp.pm398 my ($filename) = @_;
401 if(open($fileh, ">", "$filename") && close($fileh)) {
404 printf "Error creating lock file $filename error: $!\n";
409 my ($filename) = @_;
411 if(-f $filename) {
412 unlink($filename);
H A Dgetpart.pm332 my ($filename, $arrayref)=@_;
334 open(my $temp, ">", "$filename") || die "Failure writing file";
346 my ($filename)=@_;
349 if (open(my $temp, "<", "$filename")) {
/curl/tests/data/
H A Dtest118629 Multipart formposting with backslash-escaping filename containing '"'
32 …--form-escape -F "file=@\"%LOGDIR/test%TESTNUMBER\\\".txt\";type=mo/foo;filename=\"test%TESTNUMBER…
60 Content-Disposition: form-data; name="file"; filename="test%TESTNUMBER\".txt"
69 Content-Disposition: form-data; name="file2"; filename="test%TESTNUMBER\".txt"
81 Content-Disposition: attachment; filename="test%TESTNUMBER\".txt"
89 Content-Disposition: attachment; filename="test%TESTNUMBER\".txt"
H A Dtest64379 Content-Disposition: form-data; name="sendfile"; filename="postit2.c"
89 Content-Disposition: form-data; name="filename"
97 Content-Disposition: form-data; name="somename"; filename="somefile.txt"
109 Content-Disposition: form-data; name="sendfile alternative"; filename="file name 2"
119 Content-Disposition: form-data; name="filename"
127 Content-Disposition: form-data; name="somename"; filename="somefile.txt"
H A Dtest55479 Content-Disposition: form-data; name="sendfile"; filename="postit2.c"
89 Content-Disposition: form-data; name="filename"
98 Content-Disposition: form-data; name="somename"; filename="somefile.txt"
110 Content-Disposition: form-data; name="sendfile alternative"; filename="file name 2"
120 Content-Disposition: form-data; name="filename"
129 Content-Disposition: form-data; name="somename"; filename="somefile.txt"
H A Dtest134019 Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
43 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -J -O -D %LOGDIR/heads%TESTNUMBER -w "curl saved to filename %…
69 Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
74 curl saved to filename %PWD/%LOGDIR/name%TESTNUMBER
H A Dtest134119 Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
43 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -J -O -D - -w "curl saved to filename %{filename_effective}\n"
69 Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
71 curl saved to filename %PWD/%LOGDIR/name%TESTNUMBER
H A Dtest14534 Too long tftp filename
23 Too long tftp filename
H A Dtest64585 Content-Disposition: form-data; name="sendfile"; filename="postit2.c"
129 Content-Disposition: form-data; name="filename"
137 Content-Disposition: form-data; name="somename"; filename="somefile.txt"
158 Content-Disposition: form-data; name="sendfile alternative"; filename="file name 2"
202 Content-Disposition: form-data; name="filename"
210 Content-Disposition: form-data; name="somename"; filename="somefile.txt"
H A Dtest17331 HTTP RFC1867-formpost a file from stdin with "faked" filename
34 http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -F field1=contents1 -F "fileupload=@-;filename=/dev/nu…
67 Content-Disposition: form-data; name="fileupload"; filename="/dev/null"
/curl/docs/libcurl/opts/
H A DCURLOPT_HSTS.md17 CURLOPT_HSTS - HSTS cache filename
24 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_HSTS, char *filename);
29 Make the *filename* point to a filename to load an existing HSTS cache
35 HSTS cache simply starts empty. Setting the filename to NULL or "" only
60 NULL, no filename
/curl/src/
H A Dtool_cb_hdr.c176 char *filename; in tool_header_cb() local
196 filename = parse_filename(p, len); in tool_header_cb()
197 if(filename) { in tool_header_cb()
200 free(filename); in tool_header_cb()
205 outs->filename = aprintf("%s/%s", per->config->output_dir, in tool_header_cb()
206 filename); in tool_header_cb()
207 free(filename); in tool_header_cb()
208 if(!outs->filename) in tool_header_cb()
212 outs->filename = filename; in tool_header_cb()
H A Dtool_findfile.c116 const char *filename = fname; in findfile() local
137 filename++; /* move past the leading dot */ in findfile()
140 path = checkhome(home, filename, dotscore ? dotscore - 1 : 0); in findfile()
/curl/docs/cmdline-opts/
H A Dupload-file.md29 filename or curl thinks that your last directory name is the remote filename
32 When putting the local filename at the end of the URL, curl ignores what is on
33 the left side of any slash (/) or backslash (\) used in the filename and only
36 Use the filename `-` (a single dash) to use stdin instead of a given file.
37 Alternately, the filename `.` (a single period) may be specified instead of
H A Dcookie.md6 Arg: <data|filename>
26 should be in the format `NAME1=VALUE1; NAME2=VALUE2` or as a single filename.
28 When given a set of specific cookies and not a filename, it makes curl use the
33 If no `=` symbol is used in the argument, it is instead treated as a filename
39 If the filename is a single minus ("-"), curl reads the contents from stdin.
40 If the filename is an empty string ("") and is the only cookie input, curl
/curl/docs/examples/
H A Dmulti-uv.c78 char filename[50]; in add_download() local
82 snprintf(filename, 50, "%d.download", num); in add_download()
84 file = fopen(filename, "wb"); in add_download()
86 fprintf(stderr, "Error opening %s\n", filename); in add_download()
95 fprintf(stderr, "Added download %s -> %s\n", url, filename); in add_download()
H A Dmulti-event.c68 char filename[50]; in add_download() local
72 snprintf(filename, 50, "%d.download", num); in add_download()
74 file = fopen(filename, "wb"); in add_download()
76 fprintf(stderr, "Error opening %s\n", filename); in add_download()
85 fprintf(stderr, "Added download %s -> %s\n", url, filename); in add_download()
H A Dftpget.c34 const char *filename; member
43 out->stream = fopen(out->filename, "wb"); in my_fwrite()
H A Dftpsget.c35 const char *filename; member
45 out->stream = fopen(out->filename, "wb"); in my_fwrite()
H A Dhttp2-upload.c197 char filename[128]; in setup() local
204 curl_msnprintf(filename, 128, "dl-%d", num); in setup()
205 out = fopen(filename, "wb"); in setup()
273 const char *filename = "index.html"; in main() local
285 filename = argv[2]; in main()
294 setup(&trans[i], i, filename); in main()
/curl/lib/
H A Dmime.c359 char *filename; in strippath() local
363 if(!filename) in strippath()
1365 if(filename) { in curl_mime_filename()
1366 part->filename = strdup(filename); in curl_mime_filename()
1412 if(filename) { in curl_mime_filedata()
1727 if(filename) { in Curl_mime_contenttype()
1833 filename = escape_string(data, part->filename, strategy); in Curl_mime_prepare_headers()
1834 if(!filename) in Curl_mime_prepare_headers()
1845 filename? filename: "", in Curl_mime_prepare_headers()
2175 (void) filename; in curl_mime_filename()
[all …]
H A Dftplistparser.c110 } filename; member
144 } filename; member
172 size_t filename; member
320 finfo->filename = str + parser->offsets.filename; in ftp_pl_insert_finfo()
339 finfo->filename) == 0) { in ftp_pl_insert_finfo()
737 switch(parser->state.UNIX.sub.filename) { in Curl_ftp_parselist()
752 parser->offsets.filename = parser->item_offset; in Curl_ftp_parselist()
764 parser->offsets.filename = parser->item_offset; in Curl_ftp_parselist()
830 parser->offsets.filename = parser->item_offset; in Curl_ftp_parselist()
975 switch(parser->state.NT.sub.filename) { in Curl_ftp_parselist()
[all …]
H A Dfopen.c94 CURLcode Curl_fopen(struct Curl_easy *data, const char *filename, in Curl_fopen() argument
105 *fh = fopen(filename, FOPEN_WRITETEXT); in Curl_fopen()
118 dir = dirslash(filename); in Curl_fopen()

Completed in 65 milliseconds

12345678910