Questions tagged [afhttpsessionmanager]
26 questions
8
votes
2 answers
No visible @interface for 'AFHTTPSessionManager' declares the selector 'POST:parameters:progress:success:failure:'
I am new to objective c and IOS, I'm trying to post some values to a url and trying to get the response.
but I can't compile my project because, i'm having this error
/Users/Desktop/MyIOSApps/Chat System/Chat System/SignInVC.m:92:14: No
visible…

Sathya Baman
- 3,424
- 7
- 44
- 77
8
votes
1 answer
AFNetworking 3.x what is the different between AFHTTPSessionManager and AFURLSessionManager?
I'm about to upgrade AFNetworking from 1.x to 3.x. My question is what is the different between AFHTTPSessionManager and AFURLSessionManager? and when to use each? Which one support both XML and JSON request and response? Thanks

Lê Khánh Vinh
- 2,591
- 5
- 31
- 77
4
votes
1 answer
Confused about Alamofire sessionmanager
Using Alamofire 4.0 and Swift 3.0 this works:
Alamofire.request("http://content.uplynk.com/player/assetinfo/ab19f0dc98dc4b7dbfcf88fa223a6c3b.json", method: .get).responseJSON {
(response) -> Void in
print("Success: \(response.result)")
}
Success:…

Mike O
- 81
- 1
- 4
3
votes
1 answer
How to cancel all afhttpsessionmanagers requests in background?
I had an application in which i am calling synchronised requests using session managers, in
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
i am using a global
@property(strong,nonatomic)AFHTTPSessionManager…

hacker
- 8,919
- 12
- 62
- 108
2
votes
0 answers
AFNetworking 3 or 4.01 migration
I was on AFnetworging 2.0.6 and I would like to migrate to 3 or 4.0.1.
I have problem with this part of code
I know AFHTTPRequestOperation it's not reuse on version 3 or 4.
and I have some error here.
Can you help me please.
-…

Davy GRACIA
- 21
- 2
2
votes
1 answer
Maximum Concurrent Http connections per host, Alamofire?
I'd like to increase the maximum concurrent connections per host in Swift, which is limited to 4 by default in iOS.
I'm using Alamofire.
I've tried to increase the HTTPMaximumConcurrentPerHost to 50.
I've tried for in loop method and still…

Ahmed_Shemari
- 21
- 1
- 3
2
votes
1 answer
AFHTTPSessionManager GET freezing/getting deadlocked?
I recently ran into an problem with one of our clients who have a very slow internet connection and also use GroundControl. Anytime they try to load my app, they get stuck on the "Attemping to Connect to Server" loading screen. I know that in code…

Zachary Carter
- 31
- 2
2
votes
1 answer
AFHTTPSessionManager to use SOAP based service
I checked few posts (this and this) in Stackoverflow but none of them answered "How to use AFHTTPSessionManager to use SOAP based web service".
Is it not possible or we need to do some tweaking like subclassing etc?
I can call the SOAP based using…

Anoop Vaidya
- 46,283
- 15
- 111
- 140
1
vote
1 answer
Raw XML Post using AFHTTPSessionManager
how can I send raw XML posts to a SOAP interface using AFHTTPSessionManager? The following code is a fork from https://github.com/wymsee/cordova-HTTP/blob/master/src/ios/CordovaHttpPlugin.m#L69:
AFHTTPSessionManager *manager = [AFHTTPSessionManager…

Sebastian Ullrich
- 1,007
- 11
- 21
1
vote
2 answers
The data couldn’t be read because it isn’t in the correct format -objective c
Hi iam new to IOS development and I am trying to POST a JSON object to a URL using AFHTTPSessionManager.
But, i am continuously getting the error The data couldn’t be read because it isn’t in the correct format.
Can someone help me to fix this.…

Sathya Baman
- 3,424
- 7
- 44
- 77
1
vote
1 answer
iOS: AFHTTPSession manager response data
in my app I'm using the new AFN 3.0 and I have
AFHTTPSessionManager *manager
instead of
AFHTTPRequestOperation *operation
my problem is that before I was able to get some data from RequestOperation as:
NSURL *url =…

cyclingIsBetter
- 17,447
- 50
- 156
- 241
1
vote
1 answer
AFHTTPSessionManager success callback are in main thread
I have a request using AFHTTPSessionManager:
AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
[manager.requestSerializer setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
[manager.requestSerializer…

dann
- 853
- 5
- 17
1
vote
0 answers
iOS AFNetworking 2.0 how to make AFHTTPSessionManager to automatically apply cookies for a domain?
I have code that manually applies cookies for a domain to AFHTTPSessionManager's request serializer. When I execute the code, I see that cookies are being sent with requests. However, I cant seem to make the manager handle them automatically.
Is…

Alex Stone
- 46,408
- 55
- 231
- 407
1
vote
1 answer
AFHTTPSessionManager subclass swift
What is the correct way to create singletone subclass of AFHTTPSessionManager with custom session configuration?
class DefaultSessionConfiguration: NSURLSessionConfiguration {
override init () {
super.init()
…

alex
- 2,121
- 1
- 18
- 24
1
vote
0 answers
AFHTTPSessionManager posting video swift
I am trying to upload a video in background using AFNetworking > AFHTTPSessionManager Post method. I want it to conitune uploading even if the app is suspended. But I get error while executing this code, it logs no error, and points to nowhere in…

Raheel Sadiq
- 9,847
- 6
- 42
- 54