Re: Can't set header on NSURLRequest
Re: Can't set header on NSURLRequest
- Subject: Re: Can't set header on NSURLRequest
- From: Andrew Farmer <email@hidden>
- Date: Tue, 2 Jun 2009 01:13:47 -0700
On 1 Jun 2009, at 23:44, Chris wrote:
I'm having an issue with setting two headers for my NSURLRequest:
[theRequest setValue: [NSString stringWithFormat:@"/principals/
__uids__/%@/\r\n",self.userGUID] forHTTPHeaderField:@"Originator"];
[theRequest setValue: [NSString stringWithFormat:@"/principals/
__uids__/%@/\r\n",roomGUID] forHTTPHeaderField:@"Recipient"];
Lose the \r\n. They're part of the HTTP protocol, not part of your
value, and NSURLRequest will add them for you.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden