Only in http_load-12mar2006-patched/: http-load.100k.urls-100M
Only in http_load-12mar2006-patched/: http-load.100k.urls-10G
Only in http_load-12mar2006-patched/: http-load.10k.urls-100M
Only in http_load-12mar2006-patched/: http-load.10k.urls-10G
Only in http_load-12mar2006-patched/: http-load.10M.urls-100M
Only in http_load-12mar2006-patched/: http-load.10M.urls-10G
diff -ur http_load-12mar2006/http_load.c http_load-12mar2006-patched/http_load.c
--- http_load-12mar2006/http_load.c	2006-03-12 19:17:03.000000000 +0000
+++ http_load-12mar2006-patched/http_load.c	2007-03-05 15:04:52.000000000 +0000
@@ -1701,6 +1701,13 @@
 	}
     else
 	{
+        /* trust the Content-Length sent by the client */
+        if (!urls[url_num].got_bytes && connections[cnum].content_length != -1) 
+            {
+            urls[url_num].bytes = connections[cnum].content_length;
+            urls[url_num].got_bytes = 1;
+            }
+
 	if ( ! urls[url_num].got_bytes )
 	    {
 	    urls[url_num].bytes = connections[cnum].bytes;
@@ -1712,6 +1719,9 @@
 		{
 		(void) fprintf(
 		    stderr, "%s: byte count wrong\n", urls[url_num].url_str );
+                (void) fprintf(
+                    stderr, "%s: byte count wrong: con.bytes = %ld, url.bytes = %ld, content-length = %ld\n",
+                        urls[url_num].url_str, connections[cnum].bytes, urls[url_num].bytes,  connections[cnum].content_length);
 		++total_badbytes;
 		}
 	    }
