接收响应头
content-Length content-Type
- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response{
NSHTTPURLResponse* res = (NSHTTPURLResponse*)response;
float length = [[res.allHeaderFields objectForKey:@"Content-Length"] floatValue];
NSLog(@"下载内容长度:%f", length);
}