Questions tagged [afhttprequestoperation]
84 questions
0
votes
1 answer
AFNetworking issue with UStream API request for channel's video list
This is probably something simple that I am just overlooking. I am trying to make an AFHTTPRequest from uStream's API using AFNetworking. I should be getting a JSON payload response back that lists all the videos on a uStream Channel. Here is my…

denvdancsk
- 3,033
- 2
- 26
- 41
0
votes
1 answer
can't figure out json elements result
Server side execute a SQL query (server is written in python) returns a json which looks like this:
return HttpResponse(json.dumps([{"data":output, "total":theResult}]), content_type ='application/json')
output is a result return from inner method…

liv a
- 3,232
- 6
- 35
- 76
0
votes
1 answer
How do I use data from a json array?
i’m trying to set up a son using AFHTTPRequestOperation. that json is compose by coordinates and I want use that to implement mapkit inside my view
here the cose.
NSURL *URL = [NSURL…

Gianluca Carpi
- 81
- 2
- 9
0
votes
1 answer
Calling sync POST with parameters in Xcode
I found many samples of code to sending a POST request using NSURL & dispatch_sync but none that sends parameters like AFHTTPRequestOperationManager does. Would someone supply a reference or a code snippet?
I need to send text, numbers and images.

liv a
- 3,232
- 6
- 35
- 76
0
votes
1 answer
AFHTTPRequestOperation _totalBytesRead is Before or After deflating?
I am connecting to my own web service that I believe is sending back a gzipped response which is decompressed under the hood by the AF Networking library. I have verified that my server is sending the data compressed when the accept encoding gzip…

Mark Fraser
- 3,160
- 2
- 29
- 48
0
votes
1 answer
AFNetworking POST AFHTTPRequestOperation Queue issue
I'm requesting data from the server but I have an issue that it is calling the cookie first than the data unlike it should be data first than cookie. So please how can I fix this issue?
I've seen this issue via Charles…

CAN
- 1,677
- 4
- 19
- 28
0
votes
1 answer
Combine AFHTTPRequestOperation and NSBlockOperation (iOS)?
I want to perform 2 requests and send a notification at the end. My code to check a sequence of the operations:
AFHTTPRequestOperation *operation1 = ...;
AFHTTPRequestOperation *operation2 = ...;
[operation1…

Gargo
- 1,135
- 1
- 10
- 21
0
votes
1 answer
Forcing return of response object to AFNetworking
I'm using AFNetworking to run a PHP script as shown below:
NSString *urlString = @"scriptURL.php";
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
[manager POST:urlString parameters:params…

user3781236
- 728
- 2
- 9
- 23
0
votes
2 answers
AFHTTPRequestOperation download file and cache
I am using SDWebImage framework as great library, that stores image and caches too,
now I am trying to download other type files too, and SDWebImage is not useful now.
I am using AFHTTPRequestOperation to download file, and it is downloading…

Mujah Maskey
- 8,654
- 8
- 40
- 61
0
votes
1 answer
Simple screen refresh in xcode
I have a scene with json gets a facebook likes. I need automatic update for that scene (the screen must reload). when new data (in this case - facebook likes counts has been changed). I tried all samples over the web, but couldn't implement…

Максим Зуев
- 1
- 1
- 2
0
votes
1 answer
AFHTTPRequestOperationManager post multi-part request not working
Here is the template that I am using from the Git Doc
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
NSDictionary *parameters = @{@"foo": @"bar"};
[manager POST:@"http://example.com/resources.json"…

learner
- 11,490
- 26
- 97
- 169
0
votes
1 answer
How to cancel AFHTTPRequestOperation?
I have Singleton class APIHTTPClient responsible for making Restful Call using AFHTTPRequestOperation** .i have a senario where user click a button to see a View and call APIHTTPClient to get the new data to display it in that view but the user can…

Ziad Bou Ismail
- 187
- 2
- 11
0
votes
1 answer
AFHTTPRequestOperationManager with HTTP and HTTPS base url
I was wondering what is the best option (architecture) for situation where I have same API on HTTP and HTTPS. Is there a way to support HTTP and HTTPS requests in same AFHTTPRequestOperationManager or should I have two subclasses, one for HTTP…

paxx
- 1,079
- 2
- 12
- 26
0
votes
1 answer
AFHttpRequestOperation inside NSOperation
Been doing iOS for a while, but now I'm working in a complex client-server app that requires me to:
Send a request to the server (using AFHttpRequestOperation)
The response is either an interval or a Dictionary
If I get an interval, I need to wait…

David Homes
- 2,725
- 8
- 33
- 53
0
votes
0 answers
Call Method in AFHTTPRequestOperationManager
I'm trying to update my database after I get my data in my webservice but it doesn't work and I dont know why... here My Code..
- (void) getCurrentVersion {
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
…

RonPelayo
- 376
- 5
- 22