You can use following instance methods of NSMutableURLRequest
class. If you use first one, you have to pass dictionary with key-value pairs that you want to send in request headers. If you use second one, you can directly add headers one by one.
- (void)setAllHTTPHeaderFields:(NSDictionary *)headerFields
- (void)addValue:(NSString *)value forHTTPHeaderField:(NSString *)field
For more details read documentation