How to make a NTML request with Alamofire 4.0?
问题 These are request headers: let headers: HTTPHeaders = [ "Accept": "application/json", "username": "someUserName", "password": "aPasswordForSomeUserName" ] When making a request with below code it's giving me "Garbage at the end". However, when I checked the response with JSON parser online. It's a valid JSON. Alamofire.request("http://myserver/list.svc/random", headers: headers).responseJSON { response in print(response) } I also tried making a request like this : Alamofire.request("http:/