{"action":"created","issue":{"url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3163","labels_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3163/labels{/name}","comments_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3163/comments","events_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3163/events","html_url":"https://github.com/AFNetworking/AFNetworking/issues/3163","id":117391225,"number":3163,"title":"How to get progress when using `AFHTTPSessionManager GET:parameters:success:failure:`","user":{"login":"Vayn","id":224407,"avatar_url":"https://avatars.githubusercontent.com/u/224407?v=3","gravatar_id":"","url":"https://api.github.com/users/Vayn","html_url":"https://github.com/Vayn","followers_url":"https://api.github.com/users/Vayn/followers","following_url":"https://api.github.com/users/Vayn/following{/other_user}","gists_url":"https://api.github.com/users/Vayn/gists{/gist_id}","starred_url":"https://api.github.com/users/Vayn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vayn/subscriptions","organizations_url":"https://api.github.com/users/Vayn/orgs","repos_url":"https://api.github.com/users/Vayn/repos","events_url":"https://api.github.com/users/Vayn/events{/privacy}","received_events_url":"https://api.github.com/users/Vayn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-17T16:23:42Z","updated_at":"2015-11-23T19:34:10Z","closed_at":null,"body":"When I use AFNetworking 2, I could get progress with `AFHTTPRequestOperation` like this:\r\n\r\n```objective-c\r\nNSURLRequest *urlRequest = [[NSURLRequest alloc] initWithURL:aURL cachePolicy:NSURLRequestReturnCacheDataElseLoad timeoutInterval:_timeoutInterval];\r\nAFHTTPRequestOperation *imageRequestOperation = [[AFHTTPRequestOperation alloc] initWithRequest:urlRequest];\r\nimageRequestOperation.responseSerializer = [AFImageResponseSerializer serializer];\r\n[runningRequests addObject:imageRequestOperation];\r\n__weak AFHTTPRequestOperation *imageRequestOperationForBlock = imageRequestOperation;\r\n\r\n[imageRequestOperation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {\r\n    // ...\r\n} failure:^(AFHTTPRequestOperation *operation, NSError *error) {\r\n    // ...\r\n}];\r\n\r\n[imageRequestOperation setDownloadProgressBlock:^(NSUInteger bytesRead, long long totalBytesRead, long long totalBytesExpectedToRead) {\r\n    if (progress) {\r\n        progress((float)totalBytesRead / totalBytesExpectedToRead);\r\n    }\r\n}];\r\n```\r\nI don't know how to get progress in AFNetworking 3."},"comment":{"url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/comments/159039018","html_url":"https://github.com/AFNetworking/AFNetworking/issues/3163#issuecomment-159039018","issue_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3163","id":159039018,"user":{"login":"kcharwood","id":198768,"avatar_url":"https://avatars.githubusercontent.com/u/198768?v=3","gravatar_id":"","url":"https://api.github.com/users/kcharwood","html_url":"https://github.com/kcharwood","followers_url":"https://api.github.com/users/kcharwood/followers","following_url":"https://api.github.com/users/kcharwood/following{/other_user}","gists_url":"https://api.github.com/users/kcharwood/gists{/gist_id}","starred_url":"https://api.github.com/users/kcharwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcharwood/subscriptions","organizations_url":"https://api.github.com/users/kcharwood/orgs","repos_url":"https://api.github.com/users/kcharwood/repos","events_url":"https://api.github.com/users/kcharwood/events{/privacy}","received_events_url":"https://api.github.com/users/kcharwood/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T19:34:10Z","updated_at":"2015-11-23T19:34:10Z","body":"We need to have a good answer for this for 3.0.0 before we release. Thanks for opening this issue."}}