Three20 post 方式

TTURLRequest *request = [TTURLRequest requestWithURL:url delegate:self];

    TTURLDataResponse *response = [[[TTURLDataResponse alloc] init] autorelease];

NSString *body = [NSString stringWithFormat:@"seat=%@&chooseSeat=%@",seat,chooseSeat ];

request.httpMethod = @"POST";

request.httpBody = [body dataUsingEncoding:NSUTF8StringEncoding];

request.cachePolicy = TTURLRequestCachePolicyNoCache;

request.contentType = kDefaultContentType;

    request.response = response;

    request.userInfo = @"seatscheck";

你可能感兴趣的:(url)