0

here i am getting strange issue like i can able to make request into simulator but in real device gave error like "unable to read data" also attached screen shotenter image description here

My Code :

    let urlPath: String = url_to_request
    let url:NSURL = NSURL(string: urlPath)!
    let session = URLSession.shared
    let request = NSMutableURLRequest(url: url as URL)
    request.httpMethod = "POST"
    request.cachePolicy = NSURLRequest.CachePolicy.reloadIgnoringCacheData
Bucket
  • 449
  • 3
  • 20
  • You can ignore that message, unless the method is not performing what you wish. Also, I tried on playground everything works properly. – Sachin Vas Dec 05 '16 at 08:37
  • in the end im not getting any response but same thing working with my simulator. – Bucket Dec 05 '16 at 08:40
  • 1- Read http://stackoverflow.com/a/37812485/2227743, it *will* help. 2- Read http://stackoverflow.com/a/37816856/2227743, it *might* help. – Eric Aya Dec 05 '16 at 09:28

0 Answers0