Posted By

therobot on 08/27/10

Tagged

Viewed 1 times

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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.