Can't set header on NSURLRequest
Can't set header on NSURLRequest
- Subject: Can't set header on NSURLRequest
- From: Chris <email@hidden>
- Date: Mon, 01 Jun 2009 23:44:46 -0700
Hello,
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"];
When I send the request they don't appear in the headers and the
server fails to respond correctly as they are required headers. I
also tried addValue:forHTTPHeaderField, with the same result.
If I set them without the NSString (@"string...") it works fine. Am I
missing something here?
Thanks!
_______________________________________________
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