From 442cf41129d516188f52050c48f806b24450a3a3 Mon Sep 17 00:00:00 2001 From: cflip Date: Thu, 8 Jun 2023 14:49:46 -0600 Subject: Support POST requests for PHP scripts This makes it possible to both read from and write to the standard I/O in php-cgi so that the request body can be written to its stdin and the script can access POST request data. Unfortunately, this isn't quite enough for the user login on the cflip forum to work, since cookies (and other HTTP headers) aren't passed to the script yet. --- file.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'file.h') diff --git a/file.h b/file.h index 3081244..9c48425 100644 --- a/file.h +++ b/file.h @@ -16,6 +16,6 @@ const char *file_path_for_uri(const char *); enum serve_method file_method_for_path(const char *, enum http_res_code *); int file_read(const char *, int); -int file_read_php(const char *, const char *, int); +int file_read_php(const char *, const struct http_request *, int); #endif -- cgit v1.2.3