addBasicAuthenticationHeaderWithUsername:andPassword: method

Constructs a basic authentication header from the username and password provided, and adds it to the request headers.

Syntax

- ( void ) addBasicAuthenticationHeaderWithUsername : ( NSString * ) theUsername andPassword : ( NSString * ) thePassword

Remarks

Used when shouldPresentCredentialsBeforeChallenge is set to YES.