摘要: __blockASIFormDataRequest *request = [ASIFormDataRequestrequestWithURL:[NSURLURLWithString:url]]; NSLog(@"%@",url); //设置请求方式 [request setRequestMethod:httpMethod]; //设置超时时间 [request setTimeOutSeconds:30]; //判断是否为POST请求 NSComparisonResult comparRet2 = [httpMethod caseInsensitiveCompare:@&qu 阅读全文
posted @ 2014-04-09 10:47 jian啊jian 阅读(372) 评论(0) 推荐(0) 编辑
摘要: [httpMethod caseInsensitiveCompare:@"get"];不区分大小写的 字符串比较 阅读全文
posted @ 2014-04-09 10:40 jian啊jian 阅读(942) 评论(1) 推荐(0) 编辑
摘要: + (ASIHTTPRequest *)requestWithURL:(NSString *)urlstring params:(NSMutableDictionary *)params httpMethod:(NSString *)httpMethod block:(FinishLoadHandle)block { NSString *url= [NSStringstringWithFormat:@"%@%@?",adrNAME,urlstring]; //判断是否为GET请求 NSComparisonRes... 阅读全文
posted @ 2014-04-09 10:36 jian啊jian 阅读(171) 评论(0) 推荐(0) 编辑