Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bkphat

macrumors newbie
Original poster
Jun 8, 2008
17
0
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

macrumors newbie
Aug 4, 2008
2
0
hmm, if you really don't need anything in return try this:

Code:
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];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.