title: Get objc_exception_throw when setting cookie with ASIHTTPRequest
body: <p>I got objc_exception_throw when trying to set cookies for a ASIHTTPRequest request. I tried both of these but it didn't work out. </p>
  
  <pre><code>ASIHTTPRequest *request = [[ASIHTTPRequest alloc] initWithURL:url];
  
  NSMutableDictionary *properties = [[NSMutableDictionary alloc] init];
  
  [properties setValue:@".google.com" forKey:@"Domain"];
  [properties setValue:@"/" forKey:@"path"];
  [properties setValue:@"1600000000" forKey:@"expires"];
  
  
  NSHTTPCookie *cookie = [[NSHTTPCookie alloc] initWithProperties:properties];
  [request setRequestCookies:[NSMutableArray arrayWithObject:cookie]];
  </code></pre>
  
  <p>or replacing initiating code for cookie with this one</p>
  
  <pre><code>NSHTTPCookie *cookie = [[NSHTTPCookie alloc] init];
  </code></pre>
  
  <p>When I commented out the following line, everything worked fine.</p>
  
  <pre><code>[request setRequestCookies:[NSMutableArray arrayWithObject:cookie]];
  </code></pre>
  
  <p>Can you guys tell me what the problem here!</p>