title: ASIHttpRequest Log in Authentication issue
body: <p>I am trying to authenticate User name and Password with  a website ...</p>
  
  <p>i am using ASIHttpRequest like this:</p>
  
  <pre><code>- (IBAction)fetchTopSecretInformation:(id)sender{
    Ustr = User.text;    //Ustr and Pstr are strings 
    Pstr  = Pass.text;
  
    NSURL *url1 = [NSURL URLWithString:[NSString stringWithFormat:@"https://www.MySite/login/"]];
    ASIFormDataRequest *request1 = [ASIFormDataRequest requestWithURL:url1];
    [request1 setUseKeychainPersistence:YES];
    request1.delegate = self;
    request1.shouldPresentCredentialsBeforeChallenge = YES;
  
    [request1 setRequestMethod:@"POST"];
    [request1 setPostValue:User.text forKey:@"username"];
    [request1 setPostValue:Pass.text forKey:@"passwd"];
    [request1 setTimeOutSeconds:30];
    NSLog(@"Useer :%@",User.text);
  
    [request1 setDidFailSelector:@selector(topSecretFetchFailed:)];
    [request1 setDidFinishSelector:@selector(topSecretFetchComplete:)];
    [request1 startAsynchronous];
  }
  
  - (IBAction)topSecretFetchFailed:(ASIHTTPRequest *)theRequest{
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error" message:@"Error sending request to the server" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
    [alert show];
  }
  
  - (IBAction)topSecretFetchComplete:(ASIHTTPRequest *)theRequest{
    int statusCode = [theRequest responseStatusCode];
    NSString *statusMessage = [theRequest responseStatusMessage];
  
    NSString *strResponse = [[theRequest responseString] stringByTrimmingCharactersInSet:    [NSCharacterSet whitespaceAndNewlineCharacterSet]];
    NSString *strFinal = [self flattenHTML:strResponse];
    NSLog(@"Response :%@",strFinal);
    NSLog(@"StatusCode: %d", statusCode);
    NSLog(@"StatusMessage: %@", statusMessage);
  }
  </code></pre>
  
  <p>I get the Response in NSLog like this :</p>
  
  <pre><code>jQuery(function($) { $(".main").addClass("show-bg"); });
  
  JavaScript seems to be disabled in your browser.
  You must have JavaScript enabled in your browser to utilize the functionality of this website.                
  
  This is a demo store. Any orders placed through this store will not be honored or fulfilled.
  
                          +995 91 190601
  
              მოგესალმებით ელექტრონული წიგნების მაღაზიაში 
  
                          READERwill.com
  
      კალათა
  
  
  
                          კალათა GEL 0,00
                              სავაჭრო კალათა ცარიელია.
  
  ჩემი ბიბლიოთეკა
  სურვილები
  რეგისტრაცია
  
  .
  .
  .
  .
  .
  </code></pre>
  
  <p>and Status Code And status Message are</p>
  
  <blockquote>
    <p>StatusCode: 200<br>
    StatusMessage: HTTP/1.1 200 OK</p>
  </blockquote>
  
  <p>What is this response and how can i use this for authentication </p>
  
  <p>In my webservice if username and password is correct "Success" message is display and otherwise Fail message is display ... </p>