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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -