addBasicAuthenticationHeaderWithUsername:andPassword:(NSString *, NSString *) method

Constructs a basic authentication header from the user name and password specified, and adds it to the request headers.

Syntax

public virtual void addBasicAuthenticationHeaderWithUsername:andPassword: (NSString * theUsername, NSString * thePassword)

Usage

It is used when the variable shouldPresentCredentialsBeforeChallenge is set to YES. 
Usage

                       ODPRequest *request=[ODPRequest requestWithURL:[NSURL URLWithString:endpointUrl]];
[request addBasicAuthenticationHeaderWithUsername:"supuser" andPassword:@"s3puser"];
[request startSynchronous];