Http auth with httperf


/ Published in: Bash
Save to your folder(s)

Auth header (the XXXXXX part) is obtained with:

python
>>> import base64
>>> base64.encodestring('user:pass)


Copy this code and paste it in your HTML
  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.