iphone - UIWebView with server trust authentication challenge -
i'm working on web view needs work servers trust (based on ssl handshake), , not of apple approve.
is there way intercept uiwebview connection control on request authentication?
when use uiwebview method loadrequest: there's no way of getting ssl challenge (since it's not part of uiwebviewdelegate protocol).
an alternative request uiwebview send (using delegate callback webview:shouldstartloadwithrequest:navigationtype:), telling uiwebview not load it, , sending request using nsurlconnection (using delegation methods ssl handshake logic). , when connection finishes, loading data receives uiwebview (using loading method loaddata:mimetype:textencodingname:baseurl:). workaround working simple sites, complicated sites (js, css...) might not work.
thanks!
i had similar problem of trying display web page certificate has expired. found this post, showed me how use protocol on nsurlrequest
, override method allowsanyhttpscertificateforhost
.
he stresses might or might not accepted apple - development saves me time.
you may able use technique solution.
Comments
Post a Comment