[httperf] Using basic authentication with wsesslog

Laser, Mary mary.laser at hp.com
Thu Jan 17 11:09:18 PST 2008

Hi Martin,
I chatted briefly with Rick Jones on IRC & he referred me to you.  I have enabled basic authentication in httperf 9.0 using a patch (for 0.8.0) I found in the mail archive.  Works quite nicely!

Now, I want to generate a larger test using wsesslog BUT, I can't figure out how to pass the credentials.  (From looking at the code, it appears the only parameters allowed in wsesslog are method, contents and think.) Can this be done with wsesslog?

Here is my httperf invocation and a snippet of the output:

httperf --print-reply --hog --client=0/1 --server=lart.fc.hp.com --port=3128  --send-buffer=4096 --recv-buffer=16384 --wsesslog=1,1,sess_def1 --session-cookie --method=GET
httperf --print-reply --hog --client=0/1 --server=lart.fc.hp.com --port=3128 --uri=/ --send-buffer=4096 --recv-buffer=16384 --session-cookies --method=GET --wsesslog=1,1.000,sess_def1
RH0:HTTP/1.0 401 Unauthorized
RH0:Date: Thu, 17 Jan 2008 18:56:58 GMT
RH0:Server: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch9
RH0:WWW-Authenticate: Basic realm="Restricted - fossbazaar.org"
RH0:Content-Type: text/html; charset=iso-8859-1
RH0:Cache-Control: proxy-revalidate
RH0:Content-Length: 502
RH0:Proxy-support: Session-based-authentication
RH0:X-Cache: MISS from lart.fc.hp.com
RH0:X-Cache-Lookup: MISS from lart.fc.hp.com:3128
RH0:Via: 1.0 lart.fc.hp.com:3128 (squid/2.6.STABLE14)
RH0:Proxy-Connection: close

wsesslog (sessiondefs) looks like this:

# session 1 definition


Mary Laser
HP Open Source and Linux Organization

More information about the httperf mailing list