+ add cgi checks for error in script output + fix script_path relative to absolute + cgi makefile more efficient
24 lines
333 B
C++
24 lines
333 B
C++
|
|
# include "cgi_utils.hpp"
|
|
|
|
int main (int ac, char **av, char ** env)
|
|
{
|
|
std::string http_header;
|
|
std::string http_body;
|
|
std::string rq_body;
|
|
|
|
std::cin >> rq_body;
|
|
|
|
(void)ac;
|
|
(void)av;
|
|
|
|
fill_response_basic(env, http_body, http_header, rq_body);
|
|
|
|
sleep(60);
|
|
|
|
std::cout << http_header << CRLF CRLF << http_body;
|
|
|
|
return 0;
|
|
}
|
|
|