ASF Bugzilla – Attachment 31696 Details for
Bug 56604
ApacheBench custom http methods support
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
unified diff
feature56604.unified.diff.patch (text/plain), 1.85 KB, created by
Roman Jurkov
on 2014-06-06 23:25:39 UTC
(
hide
)
Description:
unified diff
Filename:
MIME Type:
Creator:
Roman Jurkov
Created:
2014-06-06 23:25:39 UTC
Size:
1.85 KB
patch
obsolete
>--- ab.c.old 2014-06-06 19:13:36.000000000 -0400 >+++ ab.c 2014-06-06 19:18:24.000000000 -0400 >@@ -266,8 +266,8 @@ > > int verbosity = 0; /* no verbosity by default */ > int recverrok = 0; /* ok to proceed after socket receive errors */ >-enum {NO_METH = 0, GET, HEAD, PUT, POST} method = NO_METH; >-const char *method_str[] = {"bug", "GET", "HEAD", "PUT", "POST"}; >+enum {NO_METH = 0, GET, HEAD, PUT, POST, CUSTOM_METHOD} method = NO_METH; >+const char *method_str[] = {"bug", "GET", "HEAD", "PUT", "POST", ""}; > int send_body = 0; /* non-zero if sending body with request */ > int requests = 1; /* Number of requests to make */ > int heartbeatres = 100; /* How often do we say we're alive */ >@@ -1950,6 +1950,7 @@ > fprintf(stderr, " -g filename Output collected data to gnuplot format file.\n"); > fprintf(stderr, " -e filename Output CSV file with percentages served\n"); > fprintf(stderr, " -r Don't exit on socket receive errors.\n"); >+ fprintf(stderr, " -m method Method name\n"); > fprintf(stderr, " -h Display usage information (this message)\n"); > #ifdef USE_SSL > >@@ -2128,7 +2129,7 @@ > myhost = NULL; /* 0.0.0.0 or :: */ > > apr_getopt_init(&opt, cntxt, argc, argv); >- while ((status = apr_getopt(opt, "n:c:t:s:b:T:p:u:v:lrkVhwix:y:z:C:H:P:A:g:X:de:SqB:" >+ while ((status = apr_getopt(opt, "n:c:t:s:b:T:p:u:v:lrkVhwix:y:z:C:H:P:A:g:X:de:SqB:m:" > #ifdef USE_SSL > "Z:f:" > #endif >@@ -2301,6 +2302,10 @@ > case 'Z': > ssl_cipher = strdup(opt_arg); > break; >+ case 'm': >+ method = CUSTOM_METHOD; >+ method_str[CUSTOM_METHOD] = strdup(opt_arg); >+ break; > case 'f': > if (strncasecmp(opt_arg, "ALL", 3) == 0) { > meth = SSLv23_client_method();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 56604
: 31696