title: passing multiple parameter in Post method
body: <p>I am new to IOS I need to pass multiple parameter in Post method.I am successfully passed one parameter in post method but multiple parameter.
  Code which I have done:</p>
  
  <pre><code>-(void) sendDataToServer : (NSString *) method params:(NSString *)str{
  
      NSString *post = [NSString stringWithFormat:@"branch_id=%@",str];
      NSData *postData = [post dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES];
      NSString *postLength = [NSString stringWithFormat:@"%lu", (unsigned long)[post length]];
  
      NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:URL]];
  
  
      [request setHTTPMethod:@"POST"];
      [request setValue:postLength forHTTPHeaderField:@"Content-Length"];
      [request setHTTPBody:postData];
  
      NSURLConnection *theConnection = [NSURLConnection connectionWithRequest:request delegate:self];
  
      if( theConnection ){
  
          mutableData = [[NSMutableData alloc]init];
      }
  }
  </code></pre>