afnetworking-2 Questions
2
How do you update expired ssl certificates if ssl pinning is used on ios apps? It seems like only an app update would enable updating the certificate but then users who don't update the app will no...
Schlenger asked 26/2, 2014 at 22:46
4
Solved
Im using AFNetworking 2. I have a UITableview and each row contains an image.
The issue is that the response type is image/pjpeg which is not an accepted type by default. To get around this I have...
Millwater asked 30/1, 2014 at 20:16
7
I'm trying to upload my payment success message to my server. Below are my code
AFHTTPRequestOperationManager *manager = [[AFHTTPRequestOperationManager alloc] init];
[manager.requestSerializer se...
Crossbill asked 28/4, 2016 at 13:15
2
Solved
Anybody know how to handle authentication in the 2.0 version of AFNetworking? I tried the below without success. The block is getting called (I had an NSLog in there) but the response is still a 40...
Summers asked 25/8, 2013 at 0:8
4
Solved
I am trying to setup Reachability using the new 2.0 AFNetworking.
In my AppDelegate I initialise the sharedManager.
// Instantiate Shared Manager
[AFNetworkReachabilityManager sharedManager];
...
Apportionment asked 17/11, 2013 at 20:41
3
I'm running into a problem trying to download an image on an Amazon S3 server.
I get the following error:
Error Domain=AFNetworkingErrorDomain Code=-1016 "Request failed: unacceptable content-ty...
Mischance asked 23/3, 2014 at 0:38
2
Solved
I need too make a post request to my server.
With AFHTTPRequestOperation is very simple just use:
[request setHTTPBody: [requestBody dataUsingEncoding:NSUTF8StringEncoding]];
However i can't fi...
Cockaigne asked 10/10, 2014 at 11:41
5
Solved
I have a web script which accepts JSON string as input through HTTP POST request.
I have came across several AFNetworking 1.x example for the same , can anybody please point me or give AFNetworking...
Ternary asked 31/1, 2014 at 18:15
3
Solved
Whenever i run this function i get assertion error, what should i do
[MBProgressHUD showHUDAddedTo:self.view animated:YES];
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManag...
Straitjacket asked 25/9, 2014 at 5:42
14
Solved
I'm trying out the new version 2.0 of AFNetworking and I'm getting the error above. Any idea why this is happening? Here's my code:
NSURL *URL = [NSURL URLWithString:kJSONlink];
NSURLRequest *re...
Skedaddle asked 1/10, 2013 at 11:9
9
Solved
I have a method, for authorizing user. I need Basic authorization.
NSString *url = [NSString stringWithFormat:@"%@/rest/api/person/auth", host];
AFHTTPRequestOperationManager *manager = [AFHTTPR...
Estevez asked 13/12, 2013 at 12:9
3
Solved
Appareantly there is no AFImageRequestOperation, but only AFImageResponseSerializer and frankly I don't get it or maybe I'm just looking too long through AFNetworking site... Downloading images wit...
Conoid asked 21/10, 2013 at 18:9
0
I can't use AFNetworking 3.x actually.
Does the 2.6.X version is compatible with IPv6 ? Even Reachability ?
Apple says:
Starting June 1, 2016 all apps submitted to the App Store must support
I...
Kinky asked 5/5, 2016 at 7:25
1
I am trying to perform this CURL request in iOS using AFNetworking 2.0:
curl -F "[email protected]" "https://image.groupme.com/pictures?access_token=token123"
using this image: http://s3.ama...
Seaward asked 19/4, 2016 at 10:18
4
Solved
I'm having a similar issue to the one discussed here.
I'm attempting to post JSON to a server.
Here's the Objective-C code that should work, but doesn't. I get an empty array in the response obje...
Lello asked 24/1, 2014 at 23:51
1
I need to upload video files from my app to a server. I tried doing so via [AFHTTPRequestOperationManager post:parameters:success:failure] but unfortunately kept getting request timeouts. I'm now t...
Gemmulation asked 29/9, 2014 at 19:25
3
I'm having a bit of a problem with AFNetworking in a share extension. In the didSelectPost, I'm calling:
[[AuthClient sharedClient] POST: @"/v1/events"
parameters: params success: ^ (AFHTTPReque...
Sowell asked 25/2, 2016 at 6:11
2
Solved
I'd like to make a POST call that has both URL parameters and a JSON body:
URL http://example.com/register?apikey=mykey
JSON { "field" : "value"}
How can I use two different serializers at the s...
Tiddly asked 4/4, 2014 at 0:56
0
My iOS app uses AFNetworking (2.6.1), and my highest ranking crash is :
Crashed: com.apple.NSURLSession-work
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0004000128ab38a0
This is how most stack traces ...
Honky asked 14/2, 2016 at 1:6
4
Solved
I'm using AFHTTPRequestOperationManager for a POST request. Now I'm deliberately entering incorrect information to handle a 400 error code. Now, the web service actually returns a JSON with a messa...
Crooked asked 26/10, 2013 at 15:56
3
Solved
I am attempting to call api.php on my local server(using MAMP).
The server side api.php is being called but the content of _POST inside the php code contains the following error:
Error Domain = NS...
Danieladaniele asked 9/11, 2013 at 10:32
2
how can I POST JSON parameters with AFNetworking? Below is the example JSON format. Thank you in advance.
{
"application": {
"identifier": "appDev"
},
"sso": {
"version": 2.0,
"session_expir...
Iconic asked 23/12, 2015 at 11:30
2
Solved
Hi I am trying to compile following code but getting error Use of undeclered identifier AFHTTPClient:
NSData* fileNameData = [fileName dataUsingEncoding:NSUTF8StringEncoding];
NSDictionary *sendD...
Hann asked 28/1, 2014 at 14:32
2
I am trying to save a png in my rails app using the below code
uploader = AvatarUploader.new
uploader.store!(params[:image])
But it's throwing ArgumentError (invalid byte sequence in UTF-8)
Wha...
Oleo asked 19/11, 2015 at 22:38
5
Solved
I'm using the new version of AFNetworking and I can't figure out how to read the headers of the response.
I'm using the AFHTTPSessionManager to perform my query, everything works well but I'm unabl...
Olimpia asked 6/12, 2013 at 10:0
© 2022 - 2024 — McMap. All rights reserved.