Top "Alamofire" questions

Alamofire is an HTTP networking library written in Swift.

iOS 9.3 : An SSL error has occurred and a secure connection to the server cannot be made

I am getting following error with self signed certificate Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and …

ios swift ssl-certificate alamofire nsurlsession
Alamofire responseSerializationFailed(Alamofire.AFError.ResponseSerializationFailureReason.inputDataNilOrZeroLength)

I had some working code that was getting results from a MySQL DB on a remote web server. It is …

swift alamofire swifty-json
Alamofire 4.0 Upload MultipartFormData Header

How do we add an authentication header to the upload function of Alamofire 4.0? below is the sample code, however I …

ios swift alamofire swift3 alamofireimage
Synchronizing remote JSON data to local cache storage in iOS Swift

I am trying to find the solution for simple processing all necessary steps for read-only consuming remote JSON data on …

ios swift http caching alamofire
Swift Alamofire VS AFNetworking

I am developing an app using Swift. I want to call a REST API. I found there are two popular …

ios swift afnetworking alamofire
How to connect to self signed servers using Alamofire 1.3

I get the below error while connecting to self signed server. Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this …

swift alamofire
Upload multiple images in swift using Alamofire

I'm using the following code to upload a single image to a server: private static func urlRequestWithComponents(urlString:String, parameters:…

ios swift alamofire image-uploading
Basic Authentication with Alamofire

Experiencing an issue when authenticating with Basic Auth. I am using a standard enum that conforms to URLRequestConvertible protocol to …

ios swift authentication alamofire nsurlcredential
iOS Alamofire stop all requests

Is there any way I can for example say: Alamofire.Manager.cancelAllRequests() or Alamofire.Manager.sharedInstance.cancelAllRequests()? Of course it …

ios alamofire
NSErrorFailingURLStringKey (kCFErrorDomainCFNetwork error -1017) for specific requests

I wrote a helper class with which I make all my requests to a server (Rails 4.1). Most of the requests …

ios ruby-on-rails swift nsjsonserialization alamofire