我在SOS使用伟大的ASIHTTPRequest图书馆,提出以下请求:
ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:[NSURL URLWithString:@"http://myurl/myscript.php"]];
[request addPostValue:@"myvalue" forKey:@"mykey"];
[request setRequestMethod:@"POST"];
[request setDelegate:self];
[request setDidFinishSelector:@selector(requestFinished:)];
[request setDidFailSelector:@selector(requestFailed:)];
[request setTimeOutSeconds:30];
[request setShouldAttemptPersistentConnection:YES];
[request setDidReceiveDataSelector:@selector(request:didReceiveData:)];
[request startAsynchronous];
现在,正如你可能看到Im试图处理这一答复时一样,事实上,我wan一.,要保持一份可上诉的意见。 因此,我的发言稿重要部分如下:
while(....){.....looping; echo $myvar; }
但是,我拒绝等待全面答复,请求在数据第一层缺失后终止。 问题产生地点和如何解决的任何建议?