How can I repeat this in objective-c
curl -u rick@email.com:mypassword http:
I played with the ASIHTTPRequest library, but I canβt understand what it is,
obviously sending my request also returns an authentication error:
-(void)submit:(id)sender { NSURL *url = [NSURL URLWithString:@"http://ldn.lighthouseapp.com/projects/63254-londonist-20/tickets.xml"]; ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url]; [request startSynchronous]; NSError *error = [request error]; if (!error) { NSString *response = [request responseString]; NSLog(@"response:%@",response); } else { NSLog(@"error:%@",error); } }
Itβs probably very simple, I just missed something pretty important
Alex
source share