nuxeo / FunkLoad

Functional and load testing framework for web applications, written in Python
http://funkload.nuxeo.org/
GNU General Public License v2.0
381 stars 86 forks source link

Basic Authentication header being sent regardless of 401 return #130

Open jkbzh opened 9 years ago

jkbzh commented 9 years ago

Hi, could it be possible to have a flag to make the HTTP requests that require authentication behave like inside a browser? That is, if the flag is set, the Basic Authentication header won't be sent unless the server's replies a 401. Today, the Basic Authentication header is systematically sent once it is set.

The workaround I had for this was to make a wrapper class on top of funkload and override the behavior of the HTTP methods. This solved my problem.