Lines 270-275
Link Here
|
270 |
char *tdstring; |
270 |
char *tdstring; |
271 |
|
271 |
|
272 |
int doclen = 0; /* the length the document should be */ |
272 |
int doclen = 0; /* the length the document should be */ |
|
|
273 |
int nolength = 0; /* Accept variable document length */ |
273 |
long totalread = 0; /* total number of bytes read */ |
274 |
long totalread = 0; /* total number of bytes read */ |
274 |
long totalbread = 0; /* totoal amount of entity body read */ |
275 |
long totalbread = 0; /* totoal amount of entity body read */ |
275 |
long totalposted = 0; /* total number of bytes posted, inc. headers */ |
276 |
long totalposted = 0; /* total number of bytes posted, inc. headers */ |
Lines 528-534
Link Here
|
528 |
printf("Server Port: %d\n", port); |
529 |
printf("Server Port: %d\n", port); |
529 |
printf("\n"); |
530 |
printf("\n"); |
530 |
printf("Document Path: %s\n", path); |
531 |
printf("Document Path: %s\n", path); |
531 |
printf("Document Length: %d bytes\n", doclen); |
532 |
if (nolength) |
|
|
533 |
printf("Document Length: Variable\n"); |
534 |
else |
535 |
printf("Document Length: %d bytes\n", doclen); |
532 |
printf("\n"); |
536 |
printf("\n"); |
533 |
printf("Concurrency Level: %d\n", concurrency); |
537 |
printf("Concurrency Level: %d\n", concurrency); |
534 |
printf("Time taken for tests: %ld.%03ld seconds\n", |
538 |
printf("Time taken for tests: %ld.%03ld seconds\n", |
Lines 965-971
Link Here
|
965 |
/* first time here */ |
969 |
/* first time here */ |
966 |
doclen = c->bread; |
970 |
doclen = c->bread; |
967 |
} |
971 |
} |
968 |
else if (c->bread != doclen) { |
972 |
else if ((c->bread != doclen) && !nolength) { |
969 |
bad++; |
973 |
bad++; |
970 |
err_length++; |
974 |
err_length++; |
971 |
} |
975 |
} |
Lines 1152-1158
Link Here
|
1152 |
/* first time here */ |
1156 |
/* first time here */ |
1153 |
doclen = c->bread; |
1157 |
doclen = c->bread; |
1154 |
} |
1158 |
} |
1155 |
else if (c->bread != doclen) { |
1159 |
else if ((c->bread != doclen) && !nolength) { |
1156 |
bad++; |
1160 |
bad++; |
1157 |
err_length++; |
1161 |
err_length++; |
1158 |
} |
1162 |
} |
Lines 1387-1392
Link Here
|
1387 |
fprintf(stderr, " -p postfile File containg data to POST\n"); |
1391 |
fprintf(stderr, " -p postfile File containg data to POST\n"); |
1388 |
fprintf(stderr, " -T content-type Content-type header for POSTing\n"); |
1392 |
fprintf(stderr, " -T content-type Content-type header for POSTing\n"); |
1389 |
fprintf(stderr, " -v verbosity How much troubleshooting info to print\n"); |
1393 |
fprintf(stderr, " -v verbosity How much troubleshooting info to print\n"); |
|
|
1394 |
fprintf(stderr, " -L Accept variable document length (use this for dynamic pages)\n"); |
1390 |
fprintf(stderr, " -w Print out results in HTML tables\n"); |
1395 |
fprintf(stderr, " -w Print out results in HTML tables\n"); |
1391 |
fprintf(stderr, " -i Use HEAD instead of GET\n"); |
1396 |
fprintf(stderr, " -i Use HEAD instead of GET\n"); |
1392 |
fprintf(stderr, " -x attributes String to insert as table attributes\n"); |
1397 |
fprintf(stderr, " -x attributes String to insert as table attributes\n"); |
Lines 1515-1521
Link Here
|
1515 |
hdrs[0] = '\0'; |
1520 |
hdrs[0] = '\0'; |
1516 |
proxyhost[0] = '\0'; |
1521 |
proxyhost[0] = '\0'; |
1517 |
optind = 1; |
1522 |
optind = 1; |
1518 |
while ((c = getopt(argc, argv, "n:c:t:T:p:v:kVhwix:y:z:C:H:P:A:g:X:de:Sq" |
1523 |
while ((c = getopt(argc, argv, "n:c:t:T:p:v:LkVhwix:y:z:C:H:P:A:g:X:de:Sq" |
1519 |
#ifdef USE_SSL |
1524 |
#ifdef USE_SSL |
1520 |
"s" |
1525 |
"s" |
1521 |
#endif |
1526 |
#endif |
Lines 1573-1578
Link Here
|
1573 |
case 'v': |
1578 |
case 'v': |
1574 |
verbosity = atoi(optarg); |
1579 |
verbosity = atoi(optarg); |
1575 |
break; |
1580 |
break; |
|
|
1581 |
case 'L': |
1582 |
nolength = 1; |
1583 |
break; |
1576 |
case 't': |
1584 |
case 't': |
1577 |
tlimit = atoi(optarg); |
1585 |
tlimit = atoi(optarg); |
1578 |
requests = MAX_REQUESTS; /* need to size data array on |
1586 |
requests = MAX_REQUESTS; /* need to size data array on |