Received: (qmail 26554 invoked by uid 501); 22 Feb 2001 17:07:53 -0000 Message-Id: <20010222170753.26553.qmail@apache.org> Date: 22 Feb 2001 17:07:53 -0000 From: Andre Breiler Reply-To: andre.breiler@rd.bbc.co.uk To: submit@bugz.apache.org Subject: ab sends 'Authorization: basic' not 'Authorization: Basic' X-Send-Pr-Version: 3.110 >Number: 7294 >Category: test >Synopsis: ab sends 'Authorization: basic' not 'Authorization: Basic' >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu Feb 22 09:10:00 PST 2001 >Closed-Date: Thu Feb 22 15:51:09 PST 2001 >Last-Modified: Thu Feb 22 15:51:09 PST 2001 >Originator: andre.breiler@rd.bbc.co.uk >Release: 2.0a9 >Organization: >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: State-Changed-From-To: open-closed State-Changed-By: abagchi State-Changed-When: Thu Feb 22 15:51:08 PST 2001 State-Changed-Why: This has been committed to the CVS tree, and should be available in the next release of Apache 2.0. Thank you for the bug report, and for using Apache. >Unformatted: [In order for any reply to be added to the PR database, you need] [to include 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! ]