title: Multiple Parameter for POST Method in iPhone
body: <p>I am trying to send multiple parameter to specific url with POST. But it is not sending the Parameter properly.</p>
  
  <pre><code>NSDate *now = [ NSDate date];
  NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
  [formatter setDateFormat:@"MM/dd/YY HH:mm:ss"];
  NSString *startDateTime = [formatter stringFromDate:now];
  
  
  NSMutableString *URL=[[[NSMutableString alloc] initWithString:LIVE_CHAT_URL] autorelease];
  NSMutableURLRequest *request =  [NSMutableURLRequest requestWithURL:[NSURL URLWithString:URL]];
  
  NSString *postData = [[NSString alloc] initWithFormat:@"Message=%@&amp;MethodName=AddMessage&amp;ToUserLoginId=18&amp;StartTime=%@&amp;Language=en&amp;userID=%d",field.text,startDateTime,1];
  NSString *postLength = [NSString stringWithFormat:@"%d", [postData length]];
  
  NSLog(@"post:%@",postData);  
  
  [request setHTTPMethod:@"POST"];
  [request setValue:postLength forHTTPHeaderField:@"Content-Length"];
  [request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"];
  [request setHTTPBody:[postData dataUsingEncoding:NSUTF8StringEncoding]];
  
  [postData release];
  [postLength release];
  [formatter release];
  
  NSError *error;
  NSURLResponse *response;
  NSData *urlData=[NSURLConnection sendSynchronousRequest:request returningResponse:&amp;response error:&amp;error];
  NSString *data=[[NSString alloc]initWithData:urlData encoding:NSUTF8StringEncoding];
  </code></pre>