当前位置: 首页 > 工具软件 > Three20 > 使用案例 >

Three20 post 方式

许照
2023-12-01

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";

 类似资料: