NSURL *aUrl = [NSURL URLWithString:@"http://www.getchanged.net/json.asp"];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:aUrl cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0];
[request setHTTPMethod:@"GET"];
NSString *postString = @"bypass=MIGCBgkrBgEEAYI3WAOxxx";
[request setHTTPBody:[postString dataUsingEncoding:NSUTF8StringEncoding]];
错误:
2014-10-29 21:43:39.529 TestMap[57987:1931535] Connection failed with error: cannot parse response
这里有什么问题?
请注意:我稍微修改了绕过哈希值,因为它包含敏感数据。网站正常工作并输出 JSON。