/* cgi example written by Amlal El Mahrouss. licensed under the MIT license */ #include #include #include #include const std::string error_html = R"( Error | SOCL

Uh Oh!

No index file was found in this directory.

Name

Refresh

SOCL's Common Gateway Server.
)"; /* finally test it */ /* @brief this stub loads a 'index.html' or returns an error message if not found. */ int main(int argc, char** argv) { snu::cgi::basic_writer<> writer; std::stringstream ss_file; ss_file << error_html; writer.html(ss_file); return 0; }