Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
asi-http-request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ben Copsey
2010-06-23 12:40:51 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
75cc857194a52fceca2dcde683295ea95cd63f13
75cc8571
1 parent
a619bde0
Remove debug stuff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
10 deletions
Classes/ASIHTTPRequest.m
iPhone Sample/AuthenticationViewController.m
Classes/ASIHTTPRequest.m
View file @
75cc857
...
...
@@ -23,7 +23,7 @@
// Automatically set on build
NSString
*
ASIHTTPRequestVersion
=
@"v1.6.2-3
6
2010-06-23"
;
NSString
*
ASIHTTPRequestVersion
=
@"v1.6.2-3
7
2010-06-23"
;
NSString
*
const
NetworkRequestErrorDomain
=
@"ASIHTTPRequestErrorDomain"
;
...
...
iPhone Sample/AuthenticationViewController.m
View file @
75cc857
...
...
@@ -23,19 +23,10 @@
[
request
setDidFinishSelector
:
@selector
(
topSecretFetchComplete
:)];
[
request
setDidFailSelector
:
@selector
(
topSecretFetchFailed
:)];
[
request
startAsynchronous
];
[
self
setRequest
:[
ASIHTTPRequest
requestWithURL
:[
NSURL
URLWithString
:
@"http://allseeing-i.com/ASIHTTPRequest/tests/digest_authentication"
]]];
[
request
setUseKeychainPersistence
:[
useKeychain
isOn
]];
[
request
setDelegate
:
self
];
[
request
setShouldPresentAuthenticationDialog
:[
useBuiltInDialog
isOn
]];
[
request
setDidFinishSelector
:
@selector
(
topSecretFetchComplete
:)];
[
request
setDidFailSelector
:
@selector
(
topSecretFetchFailed
:)];
[
request
startAsynchronous
];
}
-
(
IBAction
)
topSecretFetchFailed
:(
ASIHTTPRequest
*
)
theRequest
{
NSLog
(
@"%@"
,
theRequest
);
[
responseField
setText
:[[
request
error
]
localizedDescription
]];
[
responseField
setFont
:[
UIFont
boldSystemFontOfSize
:
12
]];
}
...
...
Please
register
or
login
to post a comment