Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 94) sorted by relevance

1234

/civetweb-2.7.6/test/
Dresource_script_demo.lua48 file = resourcedir .. "/" .. subresource
49 if lfs.attributes(file) then
50 mg.send_file(file)
52 mime = mg.get_mime_type(file)
64 file = resourcedir .. "/" .. subresource
65 mime = mg.get_mime_type(file)
66 if lfs.attributes(file) then
74 local f = io.open(file, "w")
95 file = resourcedir .. "/" .. subresource
96 mime = mg.get_mime_type(file)
[all …]
Dpage3a.lua5 file = mg.get_var(mg.request_info.query_string, "file");
8 if not file then
18 if file:match("/") or file:match("\\") then
28 filename = mg.document_root .. "/" .. file
Dpage3.lua20 file = mg.get_var(mg.request_info.query_string, "file");
21 if not file then
31 filename = mg.document_root .. "/" .. file
/civetweb-2.7.6/docs/
DOpenSSL.md21 The configuration file must contain an https port, identified by a letter 's'
24 the configuration file 'civetweb.conf':
33 Furthermore the SSL certificate file must be set:
43 certificate file required by civetweb (server.pem).
64 The server.pem file created must contain a 'CERTIFICATE' section as well as a
110 CivetWeb requires one certificate file in PEM format.
112 you need to copy their content together into one file.
113 Make sure the file has one section BEGIN RSA PRIVATE KEY /
116 In case you received a file with a section
118 you may get a suitable file by adding the letters RSA manually.
[all …]
DUserManual.md20 (`CivetWeb [OPTIONS]`) or a configuration file name (`CivetWeb [config_file_name]`),
37 When started, CivetWeb first searches for the configuration file.
38 If a configuration file is specified explicitly in the command line, i.e.
39 `CivetWeb path_to_config_file`, then the specified configuration file is used.
40 Otherwise, CivetWeb will search for the file `CivetWeb.conf` in the same directory that
41 the executable is located, and use it. This configuration file is optional.
43 The configuration file is a sequence of lines, each line containing one
46 Here is the example of a `CivetWeb.conf` file:
52 When a configuration file is used, additional command line arguments may
53 override the configuration file settings.
[all …]
/civetweb-2.7.6/src/third_party/duktape-1.8.0/src-separate/
Dduk_error.h60 #define DUK_ERROR_RAW(thr,file,line,err,msg) do { \ argument
63 …duk_err_handle_error((thr), (file), (((duk_uint_t) duk__err) << 24) | ((duk_uint_t) duk__line), (m…
71 #define DUK_ERROR_RAW_FMT1(thr,file,line,err,fmt,arg1) do { \ argument
74 …duk_err_handle_error_fmt((thr), (file), (((duk_uint_t) duk__err) << 24) | ((duk_uint_t) duk__line)…
82 #define DUK_ERROR_RAW_FMT2(thr,file,line,err,fmt,arg1,arg2) do { \ argument
85 …duk_err_handle_error_fmt((thr), (file), (((duk_uint_t) duk__err) << 24) | ((duk_uint_t) duk__line)…
93 #define DUK_ERROR_RAW_FMT3(thr,file,line,err,fmt,arg1,arg2,arg3) do { \ argument
96 …duk_err_handle_error_fmt((thr), (file), (((duk_uint_t) duk__err) << 24) | ((duk_uint_t) duk__line)…
104 #define DUK_ERROR_RAW_FMT4(thr,file,line,err,fmt,arg1,arg2,arg3,arg4) do { \ argument
107 …duk_err_handle_error_fmt((thr), (file), (((duk_uint_t) duk__err) << 24) | ((duk_uint_t) duk__line)…
[all …]
/civetweb-2.7.6/src/third_party/duktape-1.5.2/src-separate/
Dduk_error.h60 #define DUK_ERROR_RAW(thr,file,line,err,msg) do { \ argument
63 …duk_err_handle_error((thr), (file), (((duk_uint_t) duk__err) << 24) | ((duk_uint_t) duk__line), (m…
71 #define DUK_ERROR_RAW_FMT1(thr,file,line,err,fmt,arg1) do { \ argument
74 …duk_err_handle_error_fmt((thr), (file), (((duk_uint_t) duk__err) << 24) | ((duk_uint_t) duk__line)…
82 #define DUK_ERROR_RAW_FMT2(thr,file,line,err,fmt,arg1,arg2) do { \ argument
85 …duk_err_handle_error_fmt((thr), (file), (((duk_uint_t) duk__err) << 24) | ((duk_uint_t) duk__line)…
93 #define DUK_ERROR_RAW_FMT3(thr,file,line,err,fmt,arg1,arg2,arg3) do { \ argument
96 …duk_err_handle_error_fmt((thr), (file), (((duk_uint_t) duk__err) << 24) | ((duk_uint_t) duk__line)…
104 #define DUK_ERROR_RAW_FMT4(thr,file,line,err,fmt,arg1,arg2,arg3,arg4) do { \ argument
107 …duk_err_handle_error_fmt((thr), (file), (((duk_uint_t) duk__err) << 24) | ((duk_uint_t) duk__line)…
[all …]
/civetweb-2.7.6/docs/api/
Dmg_form_data_handler.md12 …lename`** - The name of the file to upload. Please not that this parameter is only valid when the …
13file including the path to store an incoming file at the computer. This parameter must be provided…
19 ||**`FORM_FIELD_STORAGE_STORE`** - Store a file as `path` and overwrite that file if it already exi…
23 … of the field being decoded, note this is only passed on the first call for file parameters (bug?)|
31file. If writing the file is successful, the callback function `field_store()` is called. This fun…
32 ||**`path`** - The path on the server where the file was stored|
33 ||**`file_size`** - The size of the stored file in bytes|
Dmg_send_mime_file.md9 |**`conn`**|`struct mg_connection *`|The connection over which the file must be sent|
10 |**`path`**|`const char *`|The full path and filename of the file|
11 |**`mime_type`**|`const char *`|The mime type of the file, or NULL for automatic detection|
19file over a connection including the HTTP headers. The function is similar to the [`mg_send_file()…
Dmg_store_body.md10 |**`path`**|`const char *`|file to store the request body|
16 |`long long`|Number of bytes written to the file, or an error code|
20 …s the body of an incoming request to a data file. The function returns the number of bytes stored …
Dmg_get_builtin_mime_type.md9 |**`file_name`**|`const char *`|The name of the file for which the MIME type has to be determined|
19file. If the MIME type cannot be determined, the value `text/plain` is returned. Please note that …
Dmg_check_digest_access_authentication.md11 |**`filename`**|`const char *`| The path to the passwords file |
22 information, matching user and password encoded within the password file.
27 found in the passwords file.
28 A return of 0 means, reading the password file succeeded, but there was no matching user,
Dmg_send_mime_file2.md9 |**`conn`**|`struct mg_connection *`|The connection over which the file must be sent|
10 |**`path`**|`const char *`|The full path and filename of the file|
20file over a connection. The function is similar to [`mg_send_mime_file()`](mg_send_mime_file.md) w…
Dmg_send_file.md9 |**`conn`**|`struct mg_connection *`|The connection over which the file must be sent|
10 |**`path`**|`const char *`|The full path and filename of the file|
18 The function `mg_send_file()` sends the contents of a file over a connection to the remote peer. Th…
Dmg_send_file_body.md9 |**`conn`**|`struct mg_connection *`|The connection over which the file must be sent|
10 |**`path`**|`const char *`|The full path and filename of the file|
19 The function `mg_send_file_body()` sends the contents of a file over a connection to the remote pee…
Dmg_start.md18 …sed as a CGI interpreter for **all** CGI scripts regardless of the script file extension. If this …
19 … respective CGI scripts. Note that the paths should be either full file paths, or file paths relat…
21 …ath/to/cgi-bin/**.cgi` as a pattern. Note that the full path of the local file is matched against …
22 …ut_delete_auth_file` defines the password file to be used for PUT and DELETE requests. Without a p…
/civetweb-2.7.6/src/third_party/
Dlfs.c122 #define lfs_setmode(L,file,m) ((void)L, setmode(_fileno(file), m)) argument
125 #define lfs_setmode(L,file,m) ((void)L, _setmode(_fileno(file), m)) argument
133 #define lfs_setmode(L,file,m) ((void)L, (void)file, (void)m, 0) argument
662 const char *file = luaL_checkstring (L, 1); local
672 if (utime (file, buf)) {
809 const char *file = luaL_checkstring (L, 1); local
812 if (st(file, &info)) {
814 lua_pushfstring (L, "cannot obtain information from file `%s'", file);
DLuaXML.lua82 local file = base.io.open(filename,"w")
83 file:write("<?xml version=\"1.0\"?>\n<!-- file \"",filename, "\", generated by LuaXML -->\n\n")
84 file:write(xml.str(var))
85 base.io.close(file)
DLuaXML_lib.c374 FILE * file=fopen(filename,"r"); in Xml_load() local
378 if(!file) in Xml_load()
381 fseek (file , 0 , SEEK_END); in Xml_load()
382 sz = ftell (file); in Xml_load()
383 rewind (file); in Xml_load()
385 sz = fread (buffer,1,sz,file); in Xml_load()
386 fclose(file); in Xml_load()
/civetweb-2.7.6/src/third_party/lua-5.1.5/src/
Dluaconf.h671 #define lua_pclose(L,file) ((void)L, (pclose(file) != -1)) argument
676 #define lua_pclose(L,file) ((void)L, (_pclose(file) != -1)) argument
682 #define lua_pclose(L,file) ((void)((void)L, file), 0) argument
/civetweb-2.7.6/examples/embedded_c/
Dembedded_c.c397 struct tfile_checksum file[MAX_FILES]; member
416 strncpy(context->file[context->index - 1].name, filename, 128); in field_disp_read_on_the_fly()
417 context->file[context->index - 1].name[127] = 0; in field_disp_read_on_the_fly()
418 context->file[context->index - 1].length = 0; in field_disp_read_on_the_fly()
419 md5_init(&(context->file[context->index - 1].chksum)); in field_disp_read_on_the_fly()
435 context->file[context->index - 1].length += valuelen; in field_get_checksum()
436 md5_append(&(context->file[context->index - 1].chksum), in field_get_checksum()
472 md5_finish(&(chksums.file[i].chksum), digest); in CheckSumHandler()
476 chksums.file[i].name, in CheckSumHandler()
477 chksums.file[i].length); in CheckSumHandler()
/civetweb-2.7.6/
Dbuild.cmd73 call :log 4 "Removing old log file %log_folder%\%%f"
354 :md5 - Gets the MD5 checksum for a file
356 :: %2 - The file path
391 :find_in_path - Finds a program of file in the PATH
394 @set file=%~2 variable
396 @if [%file%] == [] exit /b 1
397 @call :log 3 "Searching PATH for %file%"
398 @for %%x in ("%file%") do @set "file_path=%%~f$PATH:x"
413 :log_append - Appends another file into the current logging file
414 :: %1 - the file_path to the file to concatenate
[all …]
Dmingw.cmd70 @call :log 4 "Removing old log file %log_folder%\%%f"
143 :: %1 - The return variable for the repository file path
681 :md5 - Gets the MD5 checksum for a file
683 :: %2 - The file path
718 :find_in_path - Finds a program of file in the PATH
719 :: %1 - return variable of the file path
723 @set "file=%~2"
724 @if "%file%" == "" @exit /b 1
725 @call :log 3 "Searching PATH for %file%"
726 @for %%x in ("%file%") do @set "file_path=%%~f$PATH:x"
[all …]
DRELEASE_NOTES.md9 - Add NO_FILESYSTEM flag for (embedded) system without any file system
13 - Prefer pre-compressed *.gz file, if it already exists
36 - Add API function to send file body for C and Lua
96 - Mark "file in memory" feature is a candidate for deletion
160 - Add option for case sensitive file names for Windows
182 - Do not allow short file names in Windows
230 - Fix for file modification times in Windows
255 - Use temporary file name for partially uploaded files
287 - Win32: Replace dll.def file by export macros in civetweb.h (CSTAJ)
291 - Hide read-only flag in file dialogs opened by the Edit Settings dialog for the Windows executable…
[all …]
/civetweb-2.7.6/src/
Dcivetweb.c1308 const char *file, in mg_malloc_ex() argument
1318 (void)file; in mg_malloc_ex()
1343 file, in mg_malloc_ex()
1360 const char *file, in mg_calloc_ex() argument
1363 void *data = mg_malloc_ex(size * count, ctx, file, line); in mg_calloc_ex()
1373 mg_free_ex(void *memory, const char *file, unsigned line) in mg_free_ex() argument
1381 (void)file; in mg_free_ex()
1398 file, in mg_free_ex()
1415 const char *file, in mg_realloc_ex() argument
1425 (void)file; in mg_realloc_ex()
[all …]

1234