title: How to append querystring in url using objective c?
body: <p>NSString *post = @"&amp;username=adam&amp;password=test";
      NSData *postData = [post dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES];
      NSString *postLength = [NSString stringWithFormat:@"%d", [postData length]];
      NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];</p>
  
  <pre><code>[request setURL:[NSURL URLWithString:@"http://ws.myurl.com/svc-public/iPhoneAuthenticate.aspx?uname=adam&amp;pword=test"]];
  
  [request setHTTPMethod:@"POST"];
  [request setValue:postLength forHTTPHeaderField:@"Content-Length"];
  [request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"];
  [request setHTTPBody:postData];
  NSData *returnData = [ NSURLConnection sendSynchronousRequest: request returningResponse: nil error: nil ];
  NSString *response = [[NSString alloc] initWithData:returnData encoding:NSASCIIStringEncoding];
  NSLog(response);
  </code></pre>
  
  <p>This is my url <a href="http://ws.myurl.com/svc-public/iPhoneAuthenticate.aspx" rel="nofollow noreferrer">http://ws.myurl.com/svc-public/iPhoneAuthenticate.aspx</a>, now I need to append the username and password dynamically.</p>
  
  <p>How to append querystring in url? Please help me.</p>