Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- obj.inputHttpHeaders_x = new Map<String, String>();
- String username = 'xyz';
- String password = 'passwordIsthis';
- Blob headerValue = Blob.valueOf(username + ':' + password);
- String authorizationHeader = 'BASIC ' + EncodingUtil.base64Encode(headerValue);
- obj.inputHttpHeaders_x.put('Authorization', authorizationHeader);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement