As stated, the application in WIFI or 3g under normal access to the data, but switched to the edge 2g network when it was found less than the requested data are available! Investigation for a long time do not know where the problem lies, hoping encountered the same problem a friend to give answers, thank you! I have not posted the code, I think it should be possible, in my thoughts on where the problem is!
Reply:
1 You are not the first judgment in the network state it. Is how to judge it
(2) whether the request was sent, you can check on the service side.
Reply:
Hardware support?
Anyway, I have not heard of supported devices.
Reply:
Tired of talking not quite understand what is meant hardware support it?
Reply:
I use asihttprequest, certainly through the network, the request is also made that the data received does not! 3g and wifi in the data received under normal
Reply:
Carefully looked AISHTTPREQUEST in their source code, understand, after the 0.9 version supports sending and receiving compressed data. In case of default allowCompressedResponse set to yes that is allowed to receive the compressed data, then you will add a request header accept-encoding header. If the response header includes a content-encoding header indicates your data compressed (see their server is configured). Then you have to pay attention to, by default, ASIHTTPRequest will wait until the request completed only decompress the data returned. If you need to respond to the data flow stream processing (such as XML and JSON parsing), then you have to set shouldWaitToInflateCompressedResponses property to NO, so that you can implement proxy function request: didReceiveData: network data to be returned little by little feed parser. Otherwise, there is no solution to your compressed data, then the parser can not parse out the data naturally. This is my wifi and 3g data analysis under normal, but not resolved when using gprs data request causes. Because in my 2g network under request returned by the server when compressed data!
Reply:
[ASIHTTPRequest setShouldThrottleBandwidthForWWAN: YES]; on it.
No comments:
Post a Comment