Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-03-26 | Avoid possible null pointer dereferenceoriginal-cpp | cflip | |
This line dereferenced the beginning of a string to read a single char, but it needed a check to make sure there was at least one char to read in the string. | |||
2023-03-26 | Add support for building on Windows | cflip | |
This makes it possible to compile cfws with Visual Studio. Since winsock and POSIX use very similar APIs, porting is mostly just a matter of placing ifdefs around #includes and functions with slightly different names. However, CGI scripts and command line arguments are not available in this port yet, since they used the Unix-exclusive getopt.h and popen. | |||
2022-09-30 | Respond with a different content type depending on file extension | cflip | |
2022-09-20 | Validate CGI script paths before starting up the server | cflip | |
This still doesn't throw up an error when attepting to run scripts without the leading './', but it's a start | |||
2022-09-19 | Add ClangTidy configuration and apply fixes | cflip | |
2022-09-19 | Add ClangFormat configuration and reformat files | cflip | |
2022-09-19 | Implement the PATH_INFO and QUERY_STRING CGI environment variables | cflip | |
This allows scripts to differentiate between the requested path and the query parameters. | |||
2022-09-19 | Refactor the CGIScript class a bit | cflip | |
This allows the user of the class to set environment variables before opening the pipe to the script. | |||
2022-09-17 | Call them CGI scripts instead of executables | cflip | |
2022-09-17 | Make a nice wrapper class for running CGI scripts | cflip | |
2022-09-17 | Set a few environment variables for CGI scripts | cflip | |
2022-09-17 | Pass HTTP headers from CGI output into our HttpResponse class | cflip | |
2022-09-15 | Add an option to serve CGI exectuables | cflip | |
2022-09-15 | Add simple argument parsing for specifying port number | cflip | |
2022-09-15 | Start serving files from the filesystem | cflip | |
2022-07-07 | Implement simple URI parsing for multiple pages | cflip | |
2022-07-07 | Reply with a different message and response code depending on language | cflip | |
2022-07-07 | Create an HttpRequest class | cflip | |
2022-07-07 | Add some more abstractions to HttpResponse | cflip | |
2022-07-07 | Initial commit | cflip | |