I have a https
request sent to a server, now I want to access the response (NSURLResponse
) in webViewDidFinishLoad
. How do I access that?
didReceiveResponse
is used for handling https
part, so I can't really use that response there yet.
My current method of didReceiveResponse looks like below
-(void) connection:(NSURLConnection *) connection didReceiveResponse:(NSURLResponse *)response
{
_authenticated = YES;
[myWebView loadRequest:req];
[con cancel];
}