afnetworking-3 Questions

3

Solved

In AFNetworking 3 for invalid SSL certificate I used validatesCertificateChain = false , but now it seems that this field was removed and I can't make requests to my server. Here is class for req...
Adah asked 16/11, 2016 at 5:19

4

I have created a class HTTPServiceProvider inherited from AFURLSessionManager. Added below code to get the data. let configuration = NSURLSessionConfiguration.defaultSessionConfiguration() let man...
React asked 23/8, 2016 at 4:7

6

Solved

how can I get the response string from failure block in AFNetworking 3.x, In the 2.x version the way to do it was: [manager GET:path parameters:parameters success:^(AFHTTPRequestOperation *operat...
Galasyn asked 29/1, 2016 at 11:21

5

Solved

I added directories AFNetworking and UIKit+AFNetworking to project manager. I use latest library 3.0.4 After I imported file AFNetworking.h in my class file .m. I found a lot examples how to make ...
Eddy asked 6/1, 2016 at 17:33

0

After reading the source code of AFURLRequestSerialization, I found that the author uses AFHTTPRequestSerializerObservedKeyPaths and NSStringFromSelector to get multiple keys such as allowsCellular...
Zoara asked 29/8, 2017 at 3:52

6

I am trying to download an image using AFNetworking 3.0 doing this way: - (UIImage *) loadImage:(NSString *) link { __block UIImage *image = [UIImage imageNamed:@"no_user_profile_pic.png"]; AFH...
Jinajingle asked 15/3, 2016 at 9:29

10

Solved

I am trying to make a POST request which has HTTPHeader Fields and a HTTP body to the youtube API. Previously in version 2.0 of AFNetworking, I used to do it this way which worked: NSDictionary ...
Handrail asked 1/1, 2016 at 23:45

1

Solved

Does anyone know how to set ticket inside AFHTTPSessionOperation? This is the previous call using AFNetworking framework 1.0 NSURLRequest* request = [self.myClient requestWithMethod:@"POST" path:[...
Interferon asked 31/3, 2017 at 21:21

3

I have an upload form like this: <form action="http://localhost/upload.php" method="post" enctype="multipart/form-data"> <input type="file" id="upload" name="upload" /> </form> ...
Messenger asked 22/1, 2016 at 2:57

3

I'm trying to post data with x-www-form-urlencoded body. Posting via postman, it is ok But i cant do it via afnetworking 3. Here is my code NSDictionary *parameters = @{@"login" : email, @"pass...
Methacrylate asked 6/2, 2016 at 9:39

1

Solved

I am using AFNetworking 3.0 to upload Zip file on server but its give the below error from serverside . Code AFHTTPSessionManager *manager = [[AFHTTPSessionManager alloc] initWithBaseURL:[NSURL ...
Jennifferjennilee asked 5/9, 2016 at 6:39

3

Does anyone have a nice working solution for getting the download progress when using the UIImageView+AFNetworking category and AFNetworking 3.0. This category, which I did use for versions up til...
British asked 12/1, 2016 at 12:42

1

Solved

Is it possible in AFNetworking to cache image on disk for more than session? For example for a week or month. In my project i used SDWebImage and AFNetworking, but few days ago i found that AFNetwo...
Nibbs asked 28/3, 2016 at 20:24

4

Solved

I am migrating in AFNetworking 3.0. I am using AFHTTPRequestOperation in AFNetworking but it was removed in recent updates. I tried all the possible solution. Basically I need to post a JSON with H...
Wilfredwilfreda asked 13/3, 2016 at 15:4

1

Solved

I'm downloading multiple files using AFNetworking 3.0 in my project. I want to show single download progress of all files. I added each child progress of each file download to the parent progress. ...
Unlovely asked 7/2, 2016 at 4:47
1

© 2022 - 2024 — McMap. All rights reserved.