title: Sending an HTTP POST with header form-data request on iOS
body: <p>I am calling odata post api having HTTP header filed is "form-data". Below is my code :-</p>
  
  <pre><code>NSURL *restURL = [NSURL URLWithString:urlString];
      NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:restURL];
      [request setHTTPMethod: getorpost];
      if (jsonData != nil) {
                  [request setValue:@"application/form-data" forHTTPHeaderField:@"Content-Type"];
  
           [request setHTTPBody:jsonData];
      }
  
      NSURLConnection *connection = [[NSURLConnection alloc]initWithRequest:request delegate:self];
      if (connection) {
          responseData = [[NSMutableData alloc] init];
      } 
  </code></pre>
  
  <p>And i am getting below response:-</p>
  
  <p>Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by the 'Response' property of this exception for details </p>
  
  <p>But, it is working fine in Postman. Can anyone please suggest where is the fault in my code.</p>
  
  <p>Thanks,</p>