I am requesting a webpage in a UIWebView that contains comments (which are integral as they contain hidden information that the UIWebView uses to adjust settings).
Over Wifi this works fine, however over 3G querying the source from the UIWebView (with Javascript) returns output with all white space and comments removed.
My first instinct is that it's the server applying compression but the client denies as much, could there be a setting in iOS that is requesting this, or perhaps the 3G network operator (O2 - UK in this case) is stripping stuff out.
Anybody seen this, or know of a solution?
Many thanks in advance!
It was indeed the ISP stripping out comments..... the way I resolved this was to get the client to set up JS functions inside the page that returned the responses originally hidden in comments (a much cleaner solution anyway).
Then retrieve the information with:
[webView stringByEvaluatingJavaScriptFromString:@"functionName();"];