Advertisement
2_2002-2004 Internet/ Browsers/ HTML #127246

Using C++ for CGI work.

This isn't much, but it shows you how to use C++ to make CGI programs. NOTE: Please read "Explanations/Assumptions" for instructions on how to use this.

AI

Tóm tắt bởi AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Mã nguồn
original-source
#include <cstdio>
#include <string>
int main()
{
	using namespace std;
	char * pcReqMtd;
	fprintf(stdout, "Content-type: text/html\n\n");
	pcReqMtd = getenv("REQUEST_METHOD");
	fprintf(stdout, pcReqMtd);
	return 0;
}
Bình luận gốc (3)
Được khôi phục từ Wayback Machine