You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Andre Breiler <an...@rd.bbc.co.uk> on 2001/02/22 18:07:53 UTC
test/7294: ab sends 'Authorization: basic' not 'Authorization: Basic'
>Number: 7294
>Category: test
>Synopsis: ab sends 'Authorization: basic' not 'Authorization: Basic'
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Thu Feb 22 09:10:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: andre.breiler@rd.bbc.co.uk
>Release: 2.0a9
>Organization:
apache
>Environment:
I think it's for all envs the same because the type is in support/ab.c
>Description:
According to the RFCs the word 'Basic' is the right spelling and not 'basic' in the
auth header.
>How-To-Repeat:
Do an 'ab -v 10 -A user:password url' agains a password protected page (in this case the server was a IIS)
>Fix:
--- ab.c.org Thu Feb 22 16:58:49 2001
+++ ab.c Thu Feb 22 17:01:10 2001
@@ -1102,7 +1102,7 @@
l=ap_base64encode(tmp, optarg, strlen(optarg));
tmp[l]='\0';
- strncat(auth, "Authorization: basic ", sizeof(auth));
+ strncat(auth, "Authorization: Basic ", sizeof(auth));
strncat(auth, tmp, sizeof(auth));
strncat(auth, "\r\n", sizeof(auth));
break;
@@ -1115,7 +1115,7 @@
l=ap_base64encode(tmp, optarg, strlen(optarg));
tmp[l]='\0';
- strncat(auth, "Proxy-Authorization: basic ", sizeof(auth));
+ strncat(auth, "Proxy-Authorization: Basic ", sizeof(auth));
strncat(auth, tmp, sizeof(auth));
strncat(auth, "\r\n", sizeof(auth));
break;
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]