Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > HttpRequest req = new HttpRequest();
- > req.setEndpoint('https://da1.camso.co:50001/RESTAdapter/sold_to/refresh');
- > req.setMethod('GET'); String username = '***'; String password = '**';
- > Blob headerValue = Blob.valueOf(username + ':' + password); String
- > authorizationHeader = 'BASIC ' +
- > EncodingUtil.base64Encode(headerValue); req.setHeader('Authorization',
- > authorizationHeader); Http http = new Http(); HTTPResponse res =
- > http.send(req); System.debug(res.getBody());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement