dummy http request

Discussion in 'iPhone/iPad Programming' started by bkphat, Aug 3, 2008.

  1. macrumors newbie

    Joined:
    Jun 8, 2008
    #1
    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
     
  2. macrumors newbie

    Joined:
    Aug 4, 2008
    #2
    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];
    
    
     

Share This Page