PDA

View Full Version : dummy http request




bkphat
Aug 3, 2008, 10:35 PM
If I wanted to execute a server side script when the user does something, how would I do that? I don't want anything returned, like data, but simpl just want to execute an http request.

thanks



superking
Aug 4, 2008, 02:45 PM
hmm, if you really don't need anything in return try this:


NSURLRequest *theRequest=[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.site.com/bla.php"] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0];
NSURLConnection *theConnection=[[NSURLConnection alloc] initWithRequest:theRequest delegate:nil];