我正在尝试解析 xml,但我有一个问题:
NSString *url = [NSString stringWithFormat:@"http://ipadress/web_service/list.php?DATE=%@",dateSinc];
NSMutableURLRequest *request =[[[NSMutableURLRequest alloc] init] autorelease];
[request setURL:[NSURL URLWithString:url]];
[request setHTTPMethod:@"GET"];
NSURLConnection *conn=[[NSURLConnection alloc] initWithRequest:request delegate:self];
if (conn) {
webData = [[NSMutableData data] retain];
}
else{
}
当 dateSinc 是2013-02-04示例时,它可以工作,但在2013-02-04 09:47:00时它不起作用(连接没有响应)......但在浏览器中工作......