+ modif html page for script tests + script output not added to response in case of http error
23 lines
371 B
C++
23 lines
371 B
C++
|
|
# include "cgi_utils.hpp"
|
|
|
|
int main (int ac, char **av, char ** env)
|
|
{
|
|
std::string http_header;
|
|
std::string http_body;
|
|
std::string http_status;
|
|
|
|
(void)ac;
|
|
(void)av;
|
|
|
|
fill_response_basic(env, http_body, http_header);
|
|
|
|
http_status = get_value("Status");
|
|
http_header += "Status: " + http_status;
|
|
|
|
std::cout << http_header << CRLF CRLF << http_body;
|
|
|
|
return 0;
|
|
}
|
|
|