more script tests
+ add cgi checks for error in script output + fix script_path relative to absolute + cgi makefile more efficient
This commit is contained in:
21
srcs/cgi-bin/cgi_cpp_empty_lines.cpp
Normal file
21
srcs/cgi-bin/cgi_cpp_empty_lines.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
# 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);
|
||||
|
||||
std::cout << http_header << CRLF CRLF CRLF CRLF CRLF << http_body;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user