dummy http request

Discussion in 'iOS Programming' started by bkphat, Aug 3, 2008.

  1. macrumors newbie

    Jun 8, 2008
    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.

  2. macrumors newbie

    Aug 4, 2008
    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];

Share This Page