Http auth with httperf

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

Auth header (the XXXXXX part) is obtained with:

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

Copy this code and paste it in your HTML
  1. httperf --server localhost --server-name --uri / --add-header 'Authorization: Basic XXXXXX=\n' --num-conns 200 --rate 20

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.