title: Error Domain=NSURLErrorDomain Code=-1017 "cannot parse response"
body: <p>Here I am getting error while I post json.</p>
  
  <blockquote>
    <p>Error Domain=NSURLErrorDomain Code=-1017 "cannot parse response" UserInfo=0x7f89dac01a40 {NSUnderlyingError=0x7f89e0277a20 "cannot parse response", NSErrorFailingURLStringKey=<a href="http://test-onboard.qlc.in/FieldSense/authenticate" rel="noreferrer">http://test-onboard.qlc.in/FieldSense/authenticate</a>, NSErrorFailingURLKey=<a href="http://test-onboard.qlc.in/FieldSense/authenticate" rel="noreferrer">http://test-onboard.qlc.in/FieldSense/authenticate</a>, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-1, NSLocalizedDescription=cannot parse response}</p>
  </blockquote>
  
  <p>Here is my code:</p>
  
  <pre><code>NSDictionary *dictionaryData=[[NSDictionary alloc]initWithObjectsAndKeys:self.txtUsername.text, @"userEmailAddress", self.txtPassword.text, @"password",nil];            
  NSData* jsonData = [NSJSONSerialization dataWithJSONObject:dictionaryData options:kNilOptions error:&amp;error];
  
  [request setURL:url];
  [request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
  [request setHTTPBody:jsonData];
  </code></pre>