I am sending a request with POST data to a web server. The web server returns with a JSON response in case of an error or the data files themselves, if there are no errors.
I would like to track the progress of the file response. My code is based on sample code from the ASIHttpRequest Tutorial
ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
[request setPostValue:someValue forKey:@"someKey"];
[request setPostValue:someOtherValue forKey:@"someOtherKey"];
[request setShowAccurateProgress:YES];
[request setDownloadProgressDelegate:aProgressView];
request.delegate = self;
[request startSynchronous];
Nothing happens until a complete answer appears, in which case the progress bar is full.
I experimented with both synchronous and asynchronous requests.
I think the download progress delegate is not working because I am not downloading the file as such, but just getting an HTTP response to the request, right? What would be the right approach to track progress in this case?
Thanks in advance...