script test sleep input by user
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
|
||||
int main (int ac, char **av, char ** env)
|
||||
{
|
||||
std::string http_header;
|
||||
std::string http_body;
|
||||
std::string rq_body;
|
||||
std::string http_header;
|
||||
std::string http_body;
|
||||
std::string rq_body;
|
||||
size_t time;
|
||||
std::stringstream ss;
|
||||
|
||||
std::cin >> rq_body;
|
||||
|
||||
@@ -14,7 +16,9 @@ int main (int ac, char **av, char ** env)
|
||||
|
||||
fill_response_basic(env, http_body, http_header, rq_body);
|
||||
|
||||
sleep(60);
|
||||
ss << get_value("sleep", rq_body);
|
||||
ss >> time;
|
||||
sleep(time);
|
||||
|
||||
std::cout << http_header << CRLF CRLF << http_body;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user