afnetworking-2 Questions

7

I'm using AFNetworking 2.0 to read JSON from a service I'm building (on localhost for now) in Node. Pretty normal stuff. Node is sending JSON like so: res.setHeader('Content-Type','application/j...
Aerothermodynamics asked 27/12, 2013 at 21:15

2

Has anyone been successful in chaining NSURLSession background uploads? I am trying to upload a huge video file in 5 MB parts using background upload of NSURLSession. The uploads has to be in orde...
Evidentiary asked 22/10, 2015 at 15:46

2

I want too upload the image to server but got error on doing that I have used following code but don't know whats wrong is in there +(void) HTTPPostImage:(NSString *) stringURL andParameter:(NSDa...
Sleave asked 20/10, 2015 at 5:44

1

I am using AFNetworking 2.0. In AFNetworking, AFHTTPRequestOperationManager object has an API: (AFHTTPRequestOperation *)POST:(NSString *)URLString parameters:(id)parameters success:(void (^)(A...
Benitez asked 9/10, 2015 at 3:3

4

Solved

I try connect to https server, but I get error -1012(NSErrorFailingURLKey). If I try connect to http then all is good. But I should connect to https. What does it can be? I tried connect via AFNetw...
Blowup asked 6/11, 2013 at 8:56

5

I have an app that connects directly to hardware routers. Since iOS 9 I updated AFNetworking and now I am getting ssl errors when I attempt to connect over https. This isn't an iOS 9 App Transport...
Delude asked 21/9, 2015 at 10:25

2

Solved

I'm switching from iOS8 to iOS9 and AFNetworking web service calls over HTTPS that worked before no longer work. I'm getting error -1200 and error -9824 The issue is related to using self-signed ce...
Gassy asked 17/9, 2015 at 16:2

6

How do I send a POST request with AFNetworking 2.0 with all the parameters in the URL like such: http://www.myserver.com?api_key=something&lat=2.4&radius=100 Right now I have: NSString* ...
Intendment asked 27/12, 2013 at 4:5

2

Following code is to submit images through an operationQueue. The requests are all fired one by one correctly, the server response contains the image file name which client needs to get hold of. Th...
Seismism asked 30/11, 2014 at 5:29

1

I am using AFHTTPSessionManager to make api calls on the web. I have signleton object of session manager and it initiates the base url once. Occasionally, I am in a need of making api call with dif...
Shatter asked 15/7, 2014 at 5:44

2

A project I am working on needs to upload a video. The post API call for uploading a video needs a multipart body. The code I tried to use is included at the bottom of the question. The code works...

2

Solved

I'm trying to upload large files using AFNetworking and have the upload continue when the application is in the background. I can upload files just fine, but when I attempt to use a background con...

2

Solved

I migrated my networking functionality from AFNetworking to AFNetworking v2 and instead of AFHttpClient I am using AFHTTPRequestOperationManager to support iOS6 as well. My issue is that while in ...
Milanmilanese asked 22/11, 2013 at 11:31

2

I am migrating an iOS app from Xcode4 to Xcode7 (beta 4). Dependency to AFNetworking is automatically resolved via Pods. AFNetworking 2.0 is not backwards compatible with AFNetworking 1.0 so I modi...
Cabman asked 29/7, 2015 at 10:23

7

When switched to AFNetworking 2.0 the AFHTTPClient has been replaced by AFHTTPRequestOperationManager / AFHTTPSessionManager (as mentioned in the migration guide). The very first issue I came acros...
Desiredesirea asked 30/9, 2013 at 14:17

5

Solved

I'm attempting to make an iphone app that will interact with a particular JIRA server. I've got the following code to log in: NSURL *url = [[NSURL alloc] initWithString:@"https://mycompany.atlassi...

2

Solved

In short: I try to fetch data form the server with the content-type of the http request header set as @"text/html.. but for some reason RestKit changes that to application/JSON Explanation: If I w...
Bewhiskered asked 26/10, 2013 at 7:7

2

Solved

I am trying to download a file using AFNetworking (2.5.4). The download completes, the completion handler is called, with error set to nil, everything seeming fine, but the destination file does no...
Luciferase asked 16/6, 2015 at 10:44

2

Solved

I'm trying to send POST request to server, and I'm still failing to do so. Please help me out what's incorrect. Shared instance init: - (id)init{ self = [self initWithBaseURL:[NSURL URLWithString...
Unbosom asked 14/12, 2014 at 13:56

3

Solved

I am facing problem when I initialise AFHTTPSessionManager in my swift class. I have added AFNetworking using pods in my project. It shows error use of undeclared type. But when I press CMD + Click...
Eadith asked 13/10, 2014 at 8:22

7

Solved

I've just started using AFNetworking 2.0 and I was wondering how I put in headers into a HTTP Get request. The documentation sets up a GET like this: AFHTTPRequestOperationManager *manager = [AFHT...
Passionate asked 19/10, 2013 at 13:1

5

Solved

So I'm rewriting an app for iOS 7 with AFNetworking 2.0 and I'm running into the issue of sending a batch of requests at once and tracking their progress. In the old AFNetworking there was the enqu...
Slattern asked 16/10, 2013 at 21:43

3

Solved

I'm banging my head against the wall with this one. I want to select UIImage from library and upload it to server, like on could do with <form action="http://blabla.request.cfm" method="post" en...
Hereditary asked 7/11, 2013 at 12:49

5

Solved

AFNetworking 2.0 was announced last week. But I find different requirements for AFNetworking 2.0. README.md tells it requires either iOS 7.0 and above, while AFNetworking 2.0 Migration Guide tells...
Lemieux asked 27/9, 2013 at 2:5

3

Ever since upgrading my IOS code to use AFNetworking version 2.0 instead of 1.x, I cannot do an HTTP Post any more with JSON parameters. I suspect it is because my HTTP request header is not "app...
Indonesian asked 4/12, 2013 at 20:34

© 2022 - 2024 — McMap. All rights reserved.