Questions tagged [afhttpsessionmanager]

26 questions
0
votes
0 answers

Added header in network request using AFNetworking not working

I use the following code to make a GET request including a header Authorization but does not seem to work...the get request does not include the authorization token. Any ideas? // 1 - define resource URL NSURL *URL = [NSURL…
stefanosn
  • 3,264
  • 10
  • 53
  • 79
0
votes
1 answer

AFHTTPSessionManager load slow for first time request

I applied this code in my tableview. However, i realise that data will load slow for first time request. After that, if i access to the same page, the records will be loaded faster. Any idea to improve for first time loading? Thanks for your…
Test 87
  • 101
  • 2
  • 10
0
votes
1 answer

How to provide unique id to get match details with CricAPI?

I am working with CricAPI to get list of upcoming matches. NSURL *url = [[NSURL alloc] initWithString:@"http://cricapi.com/api/matches/?apikey=Gxxxxxxxxxxxxxxxxxxxx2"]; NSMutableURLRequest *request = [[NSURLRequest alloc] initWithURL:url…
S.S.D
  • 1,579
  • 2
  • 12
  • 23
0
votes
0 answers

File uploading progress issue

I am uploading a single file in a table view cell using AFNetworking. Uploading is working alright. But when I scroll my cell off view, the progress is gone or some times it displays different progress values like 20% or 50%, and again 30%. This is…
Ilesh P
  • 3,940
  • 1
  • 24
  • 49
0
votes
0 answers

how to get status code from success block I am using AFHTTPSessionManager?

I am unable to handle the status code from success block. Please give me suggestion how to handle the 204 No Content message I amusing AFHTTPSessionManager of AfNetworking
0
votes
1 answer

AFNetworking 3 uploadTaskWithRequest / uploadTaskWithStreamedRequest handlers not called

I'm trying to upgrade a project that used to have AFNetworking 2.6.3 to AFNetworking 3.1. I have a URL request: NSURL *requestURL = [NSURL URLWithString:url]; NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init]; [request…
0
votes
1 answer

AFHTTPSessionManager http registration, Objective-C IOS

I keep getting this error "result == fail -------------" NSLog says email = test; firstname = "
0
votes
1 answer

Passing Parameters Using AFNetworking in swift

What I did:- 1.I want to call the services using AFHTTPSessionManager 2.I want to pass the parameters only in JSON Format using POST method and I have also tried to pass the parameters as JSON but I was receiving Bad Request 3.Using…
Murugesh
  • 59
  • 1
  • 9
0
votes
1 answer

Retrieving Post Data sent from AFNetworking 3.0

I am trying to retrieve the POST data sent using AFSessionManager but cannot access the POST ($_POST['param']) data. I can, however, retrieve the GET ($_GET['param'])) when sending a GET command. Please help! xcode: NSString *baseURL =…
Webby
  • 43
  • 1
  • 5
0
votes
1 answer

AFHTTPSessionManager post request

I want to post a request to server. It is working fine if I am using NSURLSessionDataTask. But underneath I need to use AFNetworking as my whole application is using it. But when I am trying to hit the same service in AFHTTPSessionManager with POST…
user1071309
  • 61
  • 1
  • 7
0
votes
2 answers

afnetworking with iOS 9 sessions

I have that big project it's for some websites so I made a subclass from AFHTTPSessionManager as service class, everything was working fine till iOS 9 released, then login doesn't work I checked I get token and everything but I can't use them I mean…
Hady Nourallah
  • 442
  • 4
  • 12
1
2