summaryrefslogtreecommitdiff
path: root/http.c
AgeCommit message (Collapse)Author
2023-08-07Improve HTTP request parsing and pass cookies to CGI scriptsHEADmastercflip
The HTTP request parser has been mostly rewritten, and now it is able to parse header lines. This makes it possible to get the cookie string from the request and pass it to CGI scripts, which was needed for the cflip forum to retain login status. It is now possible to run the forum through cfws, log in and submit threads and posts!
2023-06-08Parse HTTP POST requests and request bodycflip
2023-06-03Respond with 501 Not Implemented for unknown request methodscflip
2023-06-01Parse query string from HTTP requestscflip
2023-05-30Refactor response building codecflip
This new strategy involves finding the local file path for the given URI, determining what method to use to fulfill the request (read file from disk, use php-cgi, or error), then it writes the response to the client socket.
2023-05-29Hacks to make it possible to serve PHP pagescflip
The most significant change is that the functions for reading a file and such write directly to the socket instead of attempting to fill buffers.
2023-05-27Load and serve files from the filesystemcflip
2023-05-08Begin rewriting cfws in Ccflip