Skip to content

Instantly share code, notes, and snippets.

Created September 19, 2017 08:25
What would you like to do?
mpywd - Homo Redirect FCGI
/* compile: gcc -o mpywd -lfcgi mpywd.c */
#include <stdio.h>
#include <fcgi_config.h>
#include <fcgi_stdio.h>
int main(void) {
while (FCGI_Accept() >= 0) {
printf("Content-Type: text/html\n");
printf("Status: 302 Found\n");
return 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment