Am 01.10.2014 10:26, schrieb Stephan Aßmus:
To make the API more intuitive, /something/ has to be changed about it IMHO. Even just a command line error would have helped me, or a comment in the header. But silently doing nothing was not helpful.
Why not simply remove the SetUser()/SetPassword() methods from the request, and only add it to the authentication object? That way, you can either define the method of the authentication programmatically in advance, or you can react to a 402 by retrieving the authentication object from the request, and set the name/password there (if you want to handle this inside the request automatically, use a callback mechanism).
Bye, Axel.