I am trying to execute a Http Callout to a webservice that is with windows machine and the credentials were given to me as domain\username
I wrote a simple http callout as mentioned in the docs. Did the base 64 thing for username:pwd but I keep getting
I tried to put domain as domain\username, domain:username:password with other combinations of moving domain first and last but nothing seems to work.
I have my authorizationheader set as follows
Blob headerValue = Blob.valueOf(username + ':' + password);
String authorizationHeader = 'NTLM ' + EncodingUtil.base64Encode(headerValue);
I tried BASIC above and then tried NTLM too but with same result.
Any help is greatly appreciated.