title: How to insert "Custom cookie" into ASIHTTPRequest?
body: <p>I got a problem on using ASIHTTPRequest to connect with a site which need me to send a "Custom Cookie" for check.</p>
  
  <p>Firstly, I was googled sometimes and found someway, however, the solution most like to store the cookies as the original "keys", such like "domain", "value" and so on. </p>
  
  <p>My question is, if I would like to set a "Custom Cookie Key" in it, how to make it?</p>
  
  <p>For example, I would like to set a "ServerId" into the cookie as a "key", what can I do?</p>
  
  <p>Well, I had used the following ways but they did not work.</p>
  
  <pre><code>NSDictionary *properties = [[NSMutableDictionary alloc]init];
  [properties setValue:@"serveridvalue" forKey:@"serveridKey"];
  NSHTTPCookie *cookie = [[NSHTTPCookie alloc]initWithProperties:properties];
  
  [request setUseCookiePersistence:NO];
  [request setRequestcookies:[NSMutableArray arrayWithObject:cookie]];//BTW, I got a EXC_BAD_INSTRUCTION here
  [request startSynchronous];
  </code></pre>
  
  <p>And here's my other try:</p>
  
  <pre><code>NSString *cookie = [[NSString alloc]initWithFormat:@"serverid=%@", serverid];
  [request addRequestHeader:@"Cookie" value:cookie];
  [request startSynchronous];
  </code></pre>
  
  <p>Waiting for your help, guys.</p>
  
  <p>PS: the "request" was created like:</p>
  
  <p><code>ASIHTTPRequest *request = [[ASIHTTPRequest alloc]initWithURL:url];</code></p>