title: Checking data sent in http post Request
body: <p>Is it possible to check the data which I have sent in HTTP POST request, by logging the request in XCode.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>NSString *post = [NSString stringWithFormat:@"Firstname=%@&amp;Lastname=%@&amp;Email=%@",firstName,lastName,emailId];
  
  NSLog(@"%@", post);
  
  NSData *postData = [post dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES];
  
  NSString *postLength = [NSString stringWithFormat:@"%d",[postData length]];
  
  
  NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
  
  
  [request setURL:[NSURL URLWithString:@"http://www.abcde.com/xyz/login.aspx"]];
  
  [request setHTTPMethod:@"POST"];
  
  
  [request setValue:postLength forHTTPHeaderField:@"Content-Length"];
  
  [request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"];
  
  
  
  [request setHTTPBody:postData];
  
  **NSLog(@"%@", request );**
  
  
  NSURLConnection *conn = [[NSURLConnection alloc] initWithRequest:request delegate:self];
  </code></pre>
  
  <p>I am logging the request as shown above in Bold. But here I am able to see only my Url and not any post data. </p>
  
  <p>If it is not possible to see data here where can I see the data sent in http request.</p>