File: capture.c

package info (click to toggle)
libcgic 1.07-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 272 kB
  • ctags: 206
  • sloc: ansic: 1,230; makefile: 74
file content (15 lines) | stat: -rw-r--r-- 420 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "cgic.h"

int cgiMain() {
	if (cgiWriteEnvironment("capcgi.dat") != cgiEnvironmentSuccess) {
		perror("Couldn't write environment to capcgi.dat");
		return 1;
	}
	cgiHeaderContentType("text/html");
	fprintf(cgiOut, "<title>Captured</title>\n");
	fprintf(cgiOut, "<h1>Captured</h1>\n");
	fprintf(cgiOut, "Your form submission was captured for use in\n");
	fprintf(cgiOut, "debugging CGI code.\n");
	return 0;
}