ios - Swift Network call with php Api endPoint -
can me following issue? i not able retrieve value id . the " id " alway empty when post ios network call. swift 3 network call : var request = urlrequest(url: url(string: "url here")!) request.httpmethod = "post" let poststring = "id=2" request.httpbody = poststring.data(using: .utf8) let task = urlsession.shared.datatask(with: request) { data, response, error in guard let data = data, error == nil else { // check fundamental networking error print("error=\(error)") return } if let httpstatus = response as? httpurlresponse, httpstatus.statuscode != 200 { // check http errors print("statuscode should 200, \(httpstatus.statuscode)") print("response = \(response)") } let responsestring = string(