Files
42_INT_12_webserv/srcs/cgi-bin/cgi_cpp.cpp
Hugo LAMY 8c2aff6c6b modif and added several scipts for testing cgi
+ modif html page for script tests
+ script output not added to response in case of http error
2022-08-16 01:39:46 +02:00

19 lines
330 B
C++

# include "cgi_utils.hpp"
int main (int ac, char **av, char ** env)
{
std::string http_header;
std::string http_body;
(void)ac;
(void)av;
fill_response_basic(env, http_body, http_header);
std::cout << http_header << CRLF CRLF << http_body;
return 0;
}