Advertisement
Guest User

Untitled

a guest
Mar 30th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. > HttpRequest req = new HttpRequest();
  2. > req.setEndpoint('https://da1.camso.co:50001/RESTAdapter/sold_to/refresh');
  3. > req.setMethod('GET'); String username = '***'; String password = '**';
  4. > Blob headerValue = Blob.valueOf(username + ':' + password); String
  5. > authorizationHeader = 'BASIC ' +
  6. > EncodingUtil.base64Encode(headerValue); req.setHeader('Authorization',
  7. > authorizationHeader); Http http = new Http(); HTTPResponse res =
  8. > http.send(req); System.debug(res.getBody());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement