我正在使用 ASIHttpRequest 在我的IOS游戏中将数据来回发送到服务器。
我想知道是否有人可以看到正在发送到服务器的 url,不知何故?...如果是这样的话,作弊是可能的。
提前致谢
请求如下所示:
NSURL *url = [NSURL URLWithString: @"http://xx.xxx.xx.x/development/"];
__block ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL: url];
__weak ASIHTTPRequest *request_b = request;
[request setDelegate: self];
[request setQueue: [[DatabaseHelper sharedInstance] networkQue]];
[request setShouldContinueWhenAppEntersBackground: NO];
[request addRequestHeader:@"Content-Type" value:@"text/html; charset=utf-8;"];
[request setDefaultResponseEncoding:NSUTF8StringEncoding];
[request setTimeOutSeconds: 20.0f];
[request setCachePolicy: ASIDoNotWriteToCacheCachePolicy | ASIDoNotReadFromCacheCachePolicy];
[request setPostValue:@"aSecretString" forKey:@"secret"];
[request setPostValue: @"updateUser" forKey:@"apiToRun"];
[request setPostValue: @"4" forKey:@"userId"];
网址:
http://xx.xxx.xx.x/development/secret=aSecretString&apiToRun=updateUser&userId=4