23 Jan
2002
23 Jan
'02
10:20 a.m.
Dieter Maurer wrote:
Thomas Guettler writes:
How can I get httperf (http perfomance tool) to get working with basic authentication? Whicht headers do I need to set? Read the HTTP 1.1 spec.
References and a short description can be found in
<http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>
OK, I found the solution: in python: import base64 print base64.encodestring("user:password").strip() --> dXNlcjpwYXNzd29yZA== (cygwin) $ httperf.exe --server localhost --port 8080 --uri /manage_main --add-header 'A uthorization: Basic dXNlcjpwYXNzd29yZA==\n'