AFNetworking progress
问题 I am trying to use setDownloadProgressBlock of AFHTTPRequestOperation class. The call back gives me 3 parameters: ( NSInteger bytesRead , NSInteger totalBytesRead , NSInteger totalBytesExpectedToRead ) In order for me to get the progress, I need the totalBytesExpectedToRead value, but it's giving me a -1. I checked the headers of the HTTP response and the content length is there... { "Cache-Control" = "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"; Connection = "Keep-Alive";