/ Published in: Bash
Auth header (the XXXXXX part) is obtained with:
python
>>> import base64
>>> base64.encodestring('user:pass)
python
>>> import base64
>>> base64.encodestring('user:pass)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
httperf --server localhost --server-name foo.com --uri / --add-header 'Authorization: Basic XXXXXX=\n' --num-conns 200 --rate 20