+ modif html page for script tests + script output not added to response in case of http error
21 lines
398 B
C++
21 lines
398 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);
|
|
|
|
http_header += "Content-Length: " + itos(http_body.size() + 100);
|
|
|
|
std::cout << http_header << CRLF CRLF << http_body;
|
|
|
|
return 0;
|
|
}
|
|
|