Skip to content

Instantly share code, notes, and snippets.

@mangeshpawar
mangeshpawar / apex_basix_authentication.cls
Last active April 28, 2016 15:26 — forked from swapnilshrikhande/apex_basix_authentication.cls
AuthCallout basic authentication salesforce
public class AuthCallout {
public void basicAuthCallout(){
HttpRequest req = new HttpRequest();
req.setEndpoint('http://www.yahoo.com');
req.setMethod('GET');
// Specify the required user name and password to access the endpoint
// As well as the header and header information