I have a use case where a UIWebView may need to connect to an NTLM-protected web server. I also have a use case when I already have the credentials that need to be transferred. Therefore, instead of forcing the user to enter them, how to perform a handshake using UIWebView ?
UPDATE:
Using this method here works quite well when you execute simple GET requests, but completely fail when doing POST, because the fact that it performs GET after it is sent.
ASIHttpRequest and ASIWebPageRequest have similar problems. GET requests work wonders, but any POST files just don't work. If only the world worked only with GET requests.
I was able to use this method including the username and password in the HTTP request line, but it is so rudely unsafe to ignore the reason for using it. Using the sniffer, I see that a three-way handshake occurs without any problems with GET requests, so and with POST.
source share