httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Bray" <nood...@gmail.com>
Subject Re: ab post requests
Date Mon, 21 May 2007 20:38:38 GMT
On 18/05/07, André Malo <nd@perlig.de> wrote:
> [x] Both
>
> Patches welcome :)

Patch below, for both the ab.xml file which the build seems to
translate also into the ab.8 man page, and for ab.c itself. As such, I
expect not everyone here can commit it. The patch doesn't include any
of the build products like ab.8 or ab.html.en.

Index: docs/manual/programs/ab.xml
===================================================================
--- docs/manual/programs/ab.xml (revision 539580)
+++ docs/manual/programs/ab.xml (working copy)
@@ -118,7 +118,7 @@
     non-representative benchmarking results.</dd>

     <dt><code>-p <var>POST-file</var></code></dt>
-    <dd>File containing data to POST.</dd>
+    <dd>File containing data to POST. Remember to also set
<code>-T</code>.</dd>

     <dt><code>-P <var>proxy-auth-username</var>:<var>password</var></code></dt>
     <dd>Supply BASIC Authentication credentials to a proxy en-route. The
@@ -150,7 +150,9 @@
     fixed total amount of time. Per default there is no timelimit.</dd>

     <dt><code>-T <var>content-type</var></code></dt>
-    <dd>Content-type header to use for POST data.</dd>
+    <dd>Content-type header to use for POST data, eg.
+    <code>application/x-www-form-urlencoded</code>.
+    Default: <code>text/plain</code>.</dd>

     <dt><code>-v <var>verbosity</var></code></dt>
     <dd>Set verbosity level - <code>4</code> and above prints information
on
Index: support/ab.c
===================================================================
--- support/ab.c        (revision 539580)
+++ support/ab.c        (working copy)
@@ -1778,8 +1778,10 @@
     fprintf(stderr, "    -n requests     Number of requests to perform\n");
     fprintf(stderr, "    -c concurrency  Number of multiple requests
to make\n");
     fprintf(stderr, "    -t timelimit    Seconds to max. wait for
responses\n");
-    fprintf(stderr, "    -p postfile     File containing data to POST\n");
-    fprintf(stderr, "    -T content-type Content-type header for POSTing\n");
+    fprintf(stderr, "    -p postfile     File containing data to
POST. Remember also to set -T\n");
+    fprintf(stderr, "    -T content-type Content-type header for
POSTing, eg.\n");
+    fprintf(stderr, "
'application/x-www-form-urlencoded'\n");
+    fprintf(stderr, "                    Default is 'text/plain'\n");
     fprintf(stderr, "    -v verbosity    How much troubleshooting
info to print\n");
     fprintf(stderr, "    -w              Print out results in HTML tables\n");
     fprintf(stderr, "    -i              Use HEAD instead of GET\n");

-- 
noodl

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


Mime
View raw message