Sending an HTTP POST request on iOS

前端 未结 7 1056
梦谈多话
梦谈多话 2020-11-22 12:04

I\'m trying to send an HTTP Post with the iOS application that I\'m developing but the push never reaches the server although I do get a code 200 as response (from the urlco

7条回答
  •  一整个雨季
    2020-11-22 12:36

    I am not really sure why, but as soon as I comment out the following method it works:

    connectionDidFinishDownloading:destinationURL:
    

    Furthermore, I don't think you need the methods from the NSUrlConnectionDownloadDelegate protocol, only those from NSURLConnectionDataDelegate, unless you want some download information.

提交回复
热议问题