View | Details | Raw Unified | Return to bug 56604
Collapse All | Expand All

(-)ab.c.old (-3 / +8 lines)
Lines 266-273 Link Here
266
266
267
int verbosity = 0;      /* no verbosity by default */
267
int verbosity = 0;      /* no verbosity by default */
268
int recverrok = 0;      /* ok to proceed after socket receive errors */
268
int recverrok = 0;      /* ok to proceed after socket receive errors */
269
enum {NO_METH = 0, GET, HEAD, PUT, POST} method = NO_METH;
269
enum {NO_METH = 0, GET, HEAD, PUT, POST, CUSTOM_METHOD} method = NO_METH;
270
const char *method_str[] = {"bug", "GET", "HEAD", "PUT", "POST"};
270
const char *method_str[] = {"bug", "GET", "HEAD", "PUT", "POST", ""};
271
int send_body = 0;      /* non-zero if sending body with request */
271
int send_body = 0;      /* non-zero if sending body with request */
272
int requests = 1;       /* Number of requests to make */
272
int requests = 1;       /* Number of requests to make */
273
int heartbeatres = 100; /* How often do we say we're alive */
273
int heartbeatres = 100; /* How often do we say we're alive */
Lines 1950-1955 Link Here
1950
    fprintf(stderr, "    -g filename     Output collected data to gnuplot format file.\n");
1950
    fprintf(stderr, "    -g filename     Output collected data to gnuplot format file.\n");
1951
    fprintf(stderr, "    -e filename     Output CSV file with percentages served\n");
1951
    fprintf(stderr, "    -e filename     Output CSV file with percentages served\n");
1952
    fprintf(stderr, "    -r              Don't exit on socket receive errors.\n");
1952
    fprintf(stderr, "    -r              Don't exit on socket receive errors.\n");
1953
    fprintf(stderr, "    -m method       Method name\n");
1953
    fprintf(stderr, "    -h              Display usage information (this message)\n");
1954
    fprintf(stderr, "    -h              Display usage information (this message)\n");
1954
#ifdef USE_SSL
1955
#ifdef USE_SSL
1955
1956
Lines 2128-2134 Link Here
2128
    myhost = NULL; /* 0.0.0.0 or :: */
2129
    myhost = NULL; /* 0.0.0.0 or :: */
2129
2130
2130
    apr_getopt_init(&opt, cntxt, argc, argv);
2131
    apr_getopt_init(&opt, cntxt, argc, argv);
2131
    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:"
2132
    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:"
2132
#ifdef USE_SSL
2133
#ifdef USE_SSL
2133
            "Z:f:"
2134
            "Z:f:"
2134
#endif
2135
#endif
Lines 2301-2306 Link Here
2301
            case 'Z':
2302
            case 'Z':
2302
                ssl_cipher = strdup(opt_arg);
2303
                ssl_cipher = strdup(opt_arg);
2303
                break;
2304
                break;
2305
            case 'm':
2306
                method = CUSTOM_METHOD;
2307
                method_str[CUSTOM_METHOD] = strdup(opt_arg);
2308
                break;
2304
            case 'f':
2309
            case 'f':
2305
                if (strncasecmp(opt_arg, "ALL", 3) == 0) {
2310
                if (strncasecmp(opt_arg, "ALL", 3) == 0) {
2306
                    meth = SSLv23_client_method();
2311
                    meth = SSLv23_client_method();

Return to bug 56604