Loading tests/FILEFORMAT +4 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,10 @@ that is returned. The last slash in the URL must be followed by a number. That number (N) will be used by the test-server to load test case N and return the data that is defined within the <reply><data></data></reply> section. If a CONNECT is used to the server (to emulate HTTPS etc over proxy), the port number given in the CONNECT request will be used to identify which test that is being run, if the proxy host name is said to start with 'test'. Set 'option=no-output' to prevent the test script to slap on the --output argument that directs the output to a file. The --output is also not added if the client/stdout section is used. Loading tests/server/sws.c +7 −0 Original line number Diff line number Diff line Loading @@ -350,6 +350,13 @@ static int get_request(int sock, int *part, int *open) if(!strncmp(doc, "bad", 3)) /* if the host name starts with bad, we fake an error here */ test_no = DOCNUMBER_BADCONNECT; else if(!strncmp(doc, "test", 4)) { char *ptr = strchr(doc, ':'); if(ptr) test_no = atoi(ptr+1); else test_no = DOCNUMBER_CONNECT; } else test_no = DOCNUMBER_CONNECT; } Loading Loading
tests/FILEFORMAT +4 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,10 @@ that is returned. The last slash in the URL must be followed by a number. That number (N) will be used by the test-server to load test case N and return the data that is defined within the <reply><data></data></reply> section. If a CONNECT is used to the server (to emulate HTTPS etc over proxy), the port number given in the CONNECT request will be used to identify which test that is being run, if the proxy host name is said to start with 'test'. Set 'option=no-output' to prevent the test script to slap on the --output argument that directs the output to a file. The --output is also not added if the client/stdout section is used. Loading
tests/server/sws.c +7 −0 Original line number Diff line number Diff line Loading @@ -350,6 +350,13 @@ static int get_request(int sock, int *part, int *open) if(!strncmp(doc, "bad", 3)) /* if the host name starts with bad, we fake an error here */ test_no = DOCNUMBER_BADCONNECT; else if(!strncmp(doc, "test", 4)) { char *ptr = strchr(doc, ':'); if(ptr) test_no = atoi(ptr+1); else test_no = DOCNUMBER_CONNECT; } else test_no = DOCNUMBER_CONNECT; } Loading