rakyll / hey

HTTP load generator, ApacheBench (ab) replacement
Apache License 2.0
18.18k stars 1.2k forks source link

Basic authentication will be covered #150

Open TongJiankang opened 5 years ago

TongJiankang commented 5 years ago

I can not authentication when i use param -a. Golang version is 1.11.4. Read code, use request. SetBasicAuth to authentication, and then request.Header have been reset by param header. Now, I should use hey -H "Authorization: Basic <base64 encoding <user:password>>" to replace it.

monkut commented 5 years ago

Just trying to test with BasicAuth, and the -a username:password doesn't appear to be working...

monkut commented 5 years ago

I was able to successfully make the request with the -H option as mentioned by @TongJiankang

Gawyn commented 3 years ago

Having exactly the same problem.

sassman commented 3 years ago

the PR #159 seems to cover that, what's the plan to land this?

Skyler1017 commented 3 years ago

Having exactly the same problem.

mxmaxime commented 2 years ago

Hi, Same thing. I did your workaround and it works, thanks for that.