void httpheaders() { struct databuffer thisdb; // Generation of the HTTP-headers db_append(&outfile, &status); thisdb = auto_db("\nDate: "); db_append(&outfile, &thisdb); const char *command[] = {"date", NULL}; db_cmdread(&outfile, command); thisdb = auto_db("\nServer: httpd"); db_append(&outfile, &thisdb); thisdb = auto_db("\nContent-Type: "); db_append(&outfile, &thisdb); db_append(&outfile, &contenttype); thisdb = auto_db("\n\n"); db_append(&outfile, &thisdb); }