From 6bfd5bf76de3e6ddb94b0232285a81262c7cd1e6 Mon Sep 17 00:00:00 2001 From: Phoenix Sol Date: Sun, 8 Nov 2009 14:47:36 -0600 Subject: [PATCH] add ab to test --- test.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/test.c b/test.c index f6f6d5f..803ea7f 100644 --- a/test.c +++ b/test.c @@ -337,6 +337,27 @@ const struct message requests[] = ,.body= "" } +#define APACHEBENCH_GET 13 +, {.name = "apachebench get" + ,.type= HTTP_REQUEST + ,.raw= "GET /test HTTP/1.0\r\n" + "Host: 0.0.0.0:5000\r\n" + "User-Agent: ApacheBench/2.3\r\n" + "Accept: */*\r\n\r\n" + ,.should_keep_alive= FALSE + ,.method= HTTP_GET + ,.query_string= "" + ,.fragment= "" + ,.request_path= "/test" + ,.request_uri= "/test" + ,.num_headers= 3 + ,.headers= { { "Host", "0.0.0.0:5000" } + , { "User-Agent", "ApacheBench/2.3" } + , { "Accept", "*/*" } + } + ,.body= "" + } + , {.name= NULL } /* sentinel */ };