httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scte...@apache.org
Subject svn commit: r541138 - in /httpd/httpd/trunk: docs/man/ab.8 docs/manual/programs/ab.html.en docs/manual/programs/ab.xml support/ab.c
Date Thu, 24 May 2007 02:19:05 GMT
Author: sctemme
Date: Wed May 23 19:19:04 2007
New Revision: 541138

URL: http://svn.apache.org/viewvc?view=rev&rev=541138
Log:
Explain that POST data should be sent as the correct MIME type. 
Submitted by Vincent Bray noodlet at gmail dot com, 
edited and reviewed by sctemme

Modified:
    httpd/httpd/trunk/docs/man/ab.8
    httpd/httpd/trunk/docs/manual/programs/ab.html.en
    httpd/httpd/trunk/docs/manual/programs/ab.xml
    httpd/httpd/trunk/support/ab.c

Modified: httpd/httpd/trunk/docs/man/ab.8
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/man/ab.8?view=diff&rev=541138&r1=541137&r2=541138
==============================================================================
--- httpd/httpd/trunk/docs/man/ab.8 (original)
+++ httpd/httpd/trunk/docs/man/ab.8 Wed May 23 19:19:04 2007
@@ -19,7 +19,7 @@
 .el .ne 3
 .IP "\\$1" \\$2
 ..
-.TH "AB" 8 "2004-11-14" "Apache HTTP Server" "ab"
+.TH "AB" 8 "2007-05-22" "Apache HTTP Server" "ab"
 
 .SH NAME
 ab \- Apache HTTP server benchmarking tool
@@ -74,7 +74,7 @@
 Number of requests to perform for the benchmarking session\&. The default is to just
perform a single request which usually leads to non-representative benchmarking results\&.
 
 .TP
 -p \fIPOST-file\fR
-File containing data to POST\&.  
+File containing data to POST\&. Remember to also set -T\&.  
 .TP
 -P \fIproxy-auth-username\fR:\fIpassword\fR
 Supply BASIC Authentication credentials to a proxy en-route\&. The username and password
are separated by a single : and sent on the wire base64 encoded\&. The string is sent
regardless of whether the proxy needs it (\fIi\&.e\&.\fR, has sent an 407 proxy authentication
needed)\&.  
@@ -92,7 +92,7 @@
 Maximum number of seconds to spend for benchmarking\&. This implies a -n 50000 internally\&.
Use this to benchmark the server within a fixed total amount of time\&. Per default there
is no timelimit\&.  
 .TP
 -T \fIcontent-type\fR
-Content-type header to use for POST data\&.  
+Content-type header to use for POST data, eg\&. application/x-www-form-urlencoded\&.
Default: text/plain\&.  
 .TP
 -v \fIverbosity\fR
 Set verbosity level - 4 and above prints information on headers, 3 and above prints response
codes (404, 200, etc\&.), 2 and above prints warnings and info\&.  

Modified: httpd/httpd/trunk/docs/manual/programs/ab.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/programs/ab.html.en?view=diff&rev=541138&r1=541137&r2=541138
==============================================================================
--- httpd/httpd/trunk/docs/manual/programs/ab.html.en (original)
+++ httpd/httpd/trunk/docs/manual/programs/ab.html.en Wed May 23 19:19:04 2007
@@ -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

Modified: httpd/httpd/trunk/docs/manual/programs/ab.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/programs/ab.xml?view=diff&rev=541138&r1=541137&r2=541138
==============================================================================
--- httpd/httpd/trunk/docs/manual/programs/ab.xml (original)
+++ httpd/httpd/trunk/docs/manual/programs/ab.xml Wed May 23 19:19:04 2007
@@ -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

Modified: httpd/httpd/trunk/support/ab.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/ab.c?view=diff&rev=541138&r1=541137&r2=541138
==============================================================================
--- httpd/httpd/trunk/support/ab.c (original)
+++ httpd/httpd/trunk/support/ab.c Wed May 23 19:19:04 2007
@@ -1823,13 +1823,17 @@
         "[s]"
 #endif
         "://]hostname[:port]/path\n", progname);
+/* 80 column ruler:  ********************************************************************************
+ */
     fprintf(stderr, "Options are:\n");
     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, "    -b windowsize   Size of TCP send/receive buffer, in bytes\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");



Mime
View raw message