Thanks, that way I can extend httputils, which will be in fact needed in the end. But just passing username and password wont work here (and I think it is implemented in HttpUtils2 now).
NTLM is 3 step GET request exchange with the server. Basically I need to respond to 401 (Unauthorised) messages with username, password, and domain name encoded into 3 types of messages on each step of the porcedure. If i respond with correct data server will (in theory) grant the access to desired resource. I think I will be able to compute these messages, because I found methods to generate them in JCIFS library, so i will wrap them into small lib.
Still i do not know, how to intercept and read headers from error messages (401 ones), because HttpUtils do not pass complete 401 response with all HTML attached, giving just "401 Unauthorised" in httpjob.Errormessage. And this is crucial because those headers contain indication that NTLM is to be used, and also contain hashed challenge response to which i have to respond in order to finish authentication procedure.
HTTP NTLM is in fact fully implemented in JCIFS, but I have no clue how to use it with HttpUtils2. Sorry for lenghty posts, it's because I feel so lost in this.