Showing
2 changed files
with
1 additions
and
10 deletions
| @@ -23,7 +23,7 @@ | @@ -23,7 +23,7 @@ | ||
| 23 | 23 | ||
| 24 | 24 | ||
| 25 | // Automatically set on build | 25 | // Automatically set on build |
| 26 | -NSString *ASIHTTPRequestVersion = @"v1.6.2-36 2010-06-23"; | 26 | +NSString *ASIHTTPRequestVersion = @"v1.6.2-37 2010-06-23"; |
| 27 | 27 | ||
| 28 | NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain"; | 28 | NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain"; |
| 29 | 29 |
| @@ -23,19 +23,10 @@ | @@ -23,19 +23,10 @@ | ||
| 23 | [request setDidFinishSelector:@selector(topSecretFetchComplete:)]; | 23 | [request setDidFinishSelector:@selector(topSecretFetchComplete:)]; |
| 24 | [request setDidFailSelector:@selector(topSecretFetchFailed:)]; | 24 | [request setDidFailSelector:@selector(topSecretFetchFailed:)]; |
| 25 | [request startAsynchronous]; | 25 | [request startAsynchronous]; |
| 26 | - | ||
| 27 | - [self setRequest:[ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com/ASIHTTPRequest/tests/digest_authentication"]]]; | ||
| 28 | - [request setUseKeychainPersistence:[useKeychain isOn]]; | ||
| 29 | - [request setDelegate:self]; | ||
| 30 | - [request setShouldPresentAuthenticationDialog:[useBuiltInDialog isOn]]; | ||
| 31 | - [request setDidFinishSelector:@selector(topSecretFetchComplete:)]; | ||
| 32 | - [request setDidFailSelector:@selector(topSecretFetchFailed:)]; | ||
| 33 | - [request startAsynchronous]; | ||
| 34 | } | 26 | } |
| 35 | 27 | ||
| 36 | - (IBAction)topSecretFetchFailed:(ASIHTTPRequest *)theRequest | 28 | - (IBAction)topSecretFetchFailed:(ASIHTTPRequest *)theRequest |
| 37 | { | 29 | { |
| 38 | - NSLog(@"%@",theRequest); | ||
| 39 | [responseField setText:[[request error] localizedDescription]]; | 30 | [responseField setText:[[request error] localizedDescription]]; |
| 40 | [responseField setFont:[UIFont boldSystemFontOfSize:12]]; | 31 | [responseField setFont:[UIFont boldSystemFontOfSize:12]]; |
| 41 | } | 32 | } |
-
Please register or login to post a comment