/civetweb-2.7.6/test/ |
D | resource_script_demo.lua | 48 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 …]
|
D | page3a.lua | 5 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
|
D | page3.lua | 20 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/ |
D | OpenSSL.md | 21 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 …]
|
D | UserManual.md | 20 (`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/ |
D | duk_error.h | 60 #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/ |
D | duk_error.h | 60 #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/ |
D | mg_form_data_handler.md | 12 …lename`** - The name of the file to upload. Please not that this parameter is only valid when the … 13 …file 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?)| 31 …file. 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|
|
D | mg_send_mime_file.md | 9 |**`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| 19 …file over a connection including the HTTP headers. The function is similar to the [`mg_send_file()…
|
D | mg_store_body.md | 10 |**`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 …
|
D | mg_get_builtin_mime_type.md | 9 |**`file_name`**|`const char *`|The name of the file for which the MIME type has to be determined| 19 …file. If the MIME type cannot be determined, the value `text/plain` is returned. Please note that …
|
D | mg_check_digest_access_authentication.md | 11 |**`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,
|
D | mg_send_mime_file2.md | 9 |**`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| 20 …file over a connection. The function is similar to [`mg_send_mime_file()`](mg_send_mime_file.md) w…
|
D | mg_send_file.md | 9 |**`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…
|
D | mg_send_file_body.md | 9 |**`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…
|
D | mg_start.md | 18 …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/ |
D | lfs.c | 122 #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);
|
D | LuaXML.lua | 82 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)
|
D | LuaXML_lib.c | 374 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/ |
D | luaconf.h | 671 #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/ |
D | embedded_c.c | 397 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/ |
D | build.cmd | 73 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 …]
|
D | mingw.cmd | 70 @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 …]
|
D | RELEASE_NOTES.md | 9 - 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/ |
D | civetweb.c | 1308 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 …]
|