get return result after post to server (from iphone)
<p>I make iphone application, post parametes to JSP (test.jsp in server) from iphone. The following is my codes:  </p>

<pre><code>NSData *postData = [@"&amp;test=123&amp;field=456" dataUsingEncoding:NSUTF8StringEncoding];
NSString *postLength = [NSString stringWithFormat:@"%d", [postData length]];
// Init and set fields of the URLRequest
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"POST"];
[request setURL:[NSURL URLWithString:[NSString stringWithString:@"http://mydomain.com/test.jsp"]]];
[request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"];
[request setValue:postLength forHTTPHeaderField:@"Content-Length"];
[request setHTTPBody:postData];
NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request delegate:self];

if (connection) {
// Return data of the request
NSData *receivedData = [[NSMutableData data] retain];
}

[request release];
</code></pre>

<p>But my problem is: I can not get return result from JSP server. 
How I can setup in JSP to get return result in iPhone? and in iPhone too?</p>

<p>Thank all</p>
