这是我的问题:我向 www.aaa.com 发出 POST 请求:
NSString *post =[[NSString alloc] initWithFormat:@" bll bla ",importo];
NSURL *url=[NSURL URLWithString:@"http://www.aaa.com"];
NSLog(@"POST: %@",post);
NSData *postData = [post dataUsingEncoding:NSASCIIStringEncoding
allowLossyConversion:YES];
... bla bla bla....
[request setHTTPBody:postData];
[request setValue:userAgent forHTTPHeaderField:@"User-Agent"];
httpResponse = [[NSMutableString alloc] init];
NSURLConnection *connection = [[NSURLConnection alloc]
initWithRequest:request
delegate:self];
[connection release];
我收到回复,一切正常!但在
- (void) connectionDidFinishLoading:(NSURLConnection *)connection
我想在移动 safari 中打开响应页面,而不是在 uiwebview 中,可能我必须改变方法,有人有建议吗?