Active
Project:
ApacheBench
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Sep 2009 at 10:01 UTC
Updated:
8 Sep 2009 at 10:01 UTC
For all the sites that I wish to test it is necessary to add additional parameters to ab. For example, add a cookie so that Drupal pages are served instead of Boost cached pages:
-CDRUPAL_UID=1 http://example.com/
Or if the site is behind an HTTP password:
-Auser:pass http://example.com/
This patch allows this. It does some regex work to prevent harmful characters. However I can't seem to find a definitive list of what characters should be disallowed. So currently this only allows a very strict set of characters.
Eventually these validators should be moved out into seperate functions so that they can be used to validate the original form input as well.
| Comment | File | Size | Author |
|---|---|---|---|
| ab_params.diff | 1.53 KB | dalin |