File: capture.c

package info (click to toggle)
libcgic 1.06-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 284 kB
  • ctags: 199
  • sloc: ansic: 1,206; makefile: 92; sh: 3
file content (12 lines) | stat: -rw-r--r-- 325 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#include "cgic.h"

int cgiMain() {
	cgiWriteEnvironment("/tmp/capcgi.dat");
	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;
}