ASIHTTPRequest - HTTPS

后端 未结 1 1043
無奈伤痛
無奈伤痛 2020-12-13 05:29

Does ASIHTTPRequest support HTTPS connections? My connection right now works for a HTTP connection and errors if I try a HTTPS Connection. (Goes into requestFailed and gives

1条回答
  •  有刺的猬
    2020-12-13 05:45

    Whoops, sorry, figured it out -

    [request setValidatesSecureCertificate:NO] works for reference.

    Thanks to these guys - http://www.iphonedevsdk.com/forum/iphone-sdk-development/29417-asihttprequest-library-works-https.html

    EDIT: Since this is getting some upvotes, I'd just like to add that this might not be the best approach for valid SSL certificates. The one I was using was a self-signed certificate, so this was fine.

    0 讨论(0)
提交回复
热议问题