You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Jean-Francois LE CAM <Je...@online.fr> on 1999/08/25 14:25:42 UTC

test/4904: Problem with new option -H in ApacheBench (Headers)

>Number:         4904
>Category:       test
>Synopsis:       Problem with new option -H in ApacheBench (Headers)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Aug 25 05:30:00 PDT 1999
>Last-Modified:
>Originator:     JeanFrancois.LeCam@online.fr
>Organization:
apache
>Release:        1.3.9
>Environment:
SunOS guiness 5.5.1 Generic_103640-24 sun4u sparc SUNW,Ultra-5_10
>Description:
The header I pass to -H is not found on the server side.
>How-To-Repeat:
ab -v 2 -H 'MY_HEADER: HELLO_WORLD' http://myserver:myport/index.html

The "-v 2" will show the faulty blank line in the GET request.
>Fix:
file ab.c, line 778, replace
"\r\n" "%s"
by
"%s" "\r\n"

(This only concerns GET requests, POST requests seem to be OK)
>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!     ]