httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42985] New: - Enhancement to ab to support variable requests
Date Fri, 27 Jul 2007 11:38:35 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42985>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42985

           Summary: Enhancement to ab to support variable requests
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: support
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: miles.chris@gmail.com


We need ab to be able to make requests containing variable parameter values.  This patch adds
an option 
(-R) which specifies a user-generated file containing lines which ab will append to the base
URL for every 
request, in the order they are read from the file.  If the end of file is reached before testing
is complete, it 
will repeat from the first line in the file again.

Example explains this easier:

User creates a file called requests.txt containing:
&P=government
&P=O.J.+Simpson+trial
&P=george+bush

With the patch applied, ab can be called with "-R requests.txt" to append each of the lines
to the requests 
it makes.

$ ab -n 5000 -c 1 -R requests.txt http://10.0.0.1/search?db=test

This will cause ab to create requests:

http://10.0.0.1/search?db=test&P=government
http://10.0.0.1/search?db=test&P=O.J.+Simpson+trial
http://10.0.0.1/search?db=test&P=george+bush
http://10.0.0.1/search?db=test&P=government
http://10.0.0.1/search?db=test&P=O.J.+Simpson+trial

and so on.

The patch is generated against httpd svn trunk (r560191).

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message