Hi
I am working with ASIHTTPRequest in this i have a login authentication through which i am giving username and password correctly for the first time through ASIHTTPRequest and again when i enter the password or username wrongly,for this also the application enters sucessfully. And the below given code i am using for ASIHTTPRequest Authentication.Can anyone guide me.
Code:
request = [ASIHTTPRequest requestWithURL:url];
self.userstr=[NSString stringWithFormat:@"%@",usertxt.text];
self.passstr=[NSString stringWithFormat:@"%@",passtxt.text];
[request setUsername:self.userstr];
[request setPassword:self.passstr];
[request setUseSessionPersistence:NO];
[request setDelegate:self];
[request setAllowCompressedResponse:NO];
[request setNumberOfTimesToRetryOnTimeout:1];
[request startSynchronous];
Thanks in Advance