Commit Graph

19 Commits

Author SHA1 Message Date
aaf744aad0 Improve multipart filename handling a bit. 2024-03-10 09:32:01 +01:00
75e8f68a24 Use String::length(), even though in this case size() works too. 2024-03-10 09:16:43 +01:00
27d97cf766 Added optional force parameter to WebServerRequest::move_file(). Also various fixes and improvements to the new upload temp file system. 2024-03-10 09:07:13 +01:00
b96205f05f Use the sotred path when cleanin up temp files. 2024-03-10 07:07:38 +01:00
2f950e87d6 Only count request size when not writing to a file. 2024-03-10 07:05:25 +01:00
f86c6440fb - Now WebServerSimple can also use temporary files for uploads.
- Added move_file() and is_file_moved()  helper methods to WebServerRequest.
- get_file_length() in WebServerRequest now returns uint64_t.
- Removed parse_files() from WebServerRequest. It's doesn't work well with how the http protocol works.
2024-03-09 23:39:33 +01:00
e5719c991b Store incoming http request parameters properly. 2023-12-22 13:02:17 +01:00
ae854d4e55 File copyright header updates pt7. 2023-12-18 00:02:58 +01:00
71c00ae64f Fix string parameter parsing in multipart forms, also make multipart form content fields case independent. 2023-04-16 23:30:13 +02:00
a76df86ef3 Parse and process http headers in a case insensitive manner in HTTPParser. 2023-03-22 21:31:57 +01:00
1cb112f64c Properly handle non-ascii characters in uris in HTTPParser. 2023-03-22 13:59:58 +01:00
a155e44491 Implement max request size limit for HTTPServerSimple. 2023-03-18 11:52:25 +01:00
4ededb6a34 Added optional protocol error logging to HTTPParser. Also remove unnecessary error. 2023-02-19 11:20:13 +01:00
8b4fc877a0 Added protocol error handling to the http server simple. 2023-02-19 10:34:39 +01:00
38a36b3c70 Added get request parameter support for WebServerRequest. 2022-12-21 14:52:11 +01:00
76141ee7e7 Small improvements to the simple web server. 2022-08-26 14:52:56 +02:00
06e040120a Fix int sign comparison warning. 2022-08-23 00:45:20 +02:00
b0da59764d Added proper multi part form parsing support for the simple web server. 2022-08-22 22:16:32 +02:00
1ef37c61c2 Moved http server simple to it's own module. 2022-08-19 22:09:30 +02:00