PDA

View Full Version : xml file with Authentication, how to parse




vineesh
Aug 9, 2012, 02:12 AM
I have a XML url with username and password.
How Authenticate this url and Parse ?

How to use the parsed file stored in to database, SQLite ?



vineesh
Aug 13, 2012, 06:41 AM
I solved my issue. Thanks for all to spent time for me.

-(void)connection:(NSURLConnection*)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
{
NSURLCredential *myCreds=[[NSURLCredential alloc] initWithUser:@"bigbirdapiuser" password:@"JQi5aPjge7me" persistence:NO];
[challenge.sender useCredential:myCreds forAuthenticationChallenge:challenge];
}