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-22 | Add install target to Makefile | 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 a simple Perl script that prints out all environment varaiables | cflip | |
This can be used to view the values of environment variables passed to CGI scripts. | |||
2022-09-19 | Add ClangTidy configuration and apply fixes | cflip | |
2022-09-19 | Add ClangFormat configuration and reformat files | cflip | |
2022-09-19 | Improve Makefile build system | cflip | |
Building each source file as a separate object makes it faster to compile when only changing one source file, and also allows you to compile with multiple threads when building the whole project. | |||
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-19 | Add abstractions to automatically unset environment variables | cflip | |
The PATH_INFO environment variable has also been added. | |||
2022-09-17 | Set SO_REUSEADDR and SO_REUSEPORT socket options | cflip | |
This allows the server to reuse the same address and port when repeatedly running and stopping the server while testing things instead of quitting with the "Address already in use" error. | |||
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 HTTP 500 Internal Server Error | cflip | |
2022-09-15 | Add simple argument parsing for specifying port number | cflip | |
2022-09-15 | Start serving files from the filesystem | cflip | |
2022-09-14 | Fix a few compiler-dependent errors | cflip | |
2022-07-07 | Implement simple URI parsing for multiple pages | cflip | |
2022-07-07 | Don't print HTTP requests to the console | cflip | |
2022-07-07 | Ignore Visual Studio Code files | 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 | |