珍惜每一天

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Three20 post 方式

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

    TTURLDataResponse *response = [[[TTURLDataResponsealloc] 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";

 
posted on 2013-01-17 22:35  了无痕  阅读(82)  评论(0)    收藏  举报