Posted By

therobot on 08/27/10


Tagged

performance benchmarking


Versions (?)

Http auth with httperf


 / Published in: Bash
 

Auth header (the XXXXXX part) is obtained with:

python

import base64 base64.encodestring('user:pass)

  1. httperf --server localhost --server-name foo.com --uri / --add-header 'Authorization: Basic XXXXXX=\n' --num-conns 200 --rate 20

Report this snippet  

You need to login to post a comment.