diff --git a/testutils/testclient_chunked_linux/testclient.c b/testutils/testclient_chunked_linux/testclient.c index 9f90a879..d0d02feb 100644 --- a/testutils/testclient_chunked_linux/testclient.c +++ b/testutils/testclient_chunked_linux/testclient.c @@ -34,6 +34,7 @@ const char * METHOD = "PUT"; unsigned postSize = 1024; unsigned extraHeadSize = 0; +unsigned queryStringSize = 0; int keep_alive = 0; int chunked = 0; @@ -72,10 +73,8 @@ int TestClient(unsigned clientNo) { size_t totalData = 0; size_t bodyData = 0; int isBody = 0; - int isTest = (clientNo == 0); - int cpu = ((int)clientNo) % 100; int timeOut = 10; - unsigned long i, j; + unsigned long i; // TCP soc = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); @@ -93,7 +92,13 @@ int TestClient(unsigned clientNo) { } sockprintf(soc, "%s %s", METHOD, RESOURCE); - // could send query string here + + if (queryStringSize>0) { + sockprintf(soc, "?", METHOD, RESOURCE); + for (i=0;i<(queryStringSize/10);i++) {sockprintf(soc, "1234567890");} + for (i=0;i<(queryStringSize%10);i++) {sockprintf(soc, "_");} + } + sockprintf(soc, " HTTP/1.1\r\nHost: %s\r\n", HOST); if (keep_alive) { diff --git a/testutils/testclient_chunked_linux/testclient2.vcxproj b/testutils/testclient_chunked_linux/testclient2.vcxproj new file mode 100644 index 00000000..63ca45f6 --- /dev/null +++ b/testutils/testclient_chunked_linux/testclient2.vcxproj @@ -0,0 +1,90 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {150140C5-2989-4D0D-8714-5A47B78EAD4D} + Win32Proj + testclient2 + + + + Application + true + Unicode + + + Application + false + true + Unicode + + + + + + + + + + + + + true + false + $(ProjectDir)$(Configuration)\ + + + false + false + $(ProjectDir)$(Configuration)\ + + + + + + Level3 + Disabled + _CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + MultiThreadedDebug + + + Console + true + binmode.obj;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) + + + + + Level3 + + + MaxSpeed + true + true + _CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + MultiThreaded + + + Console + true + true + true + binmode.obj;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) + + + + + + + + + \ No newline at end of file