Issue with HTTP request in Objective C
<p>Iam trying to submit values to an external DB using http request</p>

<p>My code is below</p>

<pre><code>NSString *post =[NSString stringWithFormat:@"user=%@&amp;child=%@&amp;content=%@",userId,childId, crackContent.text];

  responseData = [[NSMutableData data] retain];
  NSString *hostStr = @"http://myhost.com/addItem.php?";
  post = [utilityObj getEncodedUrl:post];
  hostStr = [hostStr stringByAppendingString:post];
  NSLog(hostStr);

  NSLog(hostStr);
  NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:hostStr]];

  [[NSURLConnection alloc] initWithRequest:request delegate:self];
</code></pre>

<p>My issue is that if any space contains any of the parameter it will not submitted, otherwise it is successfully submitted.</p>

<p>Help is highly appreciated.</p>
