0

I am downloading some http using ASIHTTPRequest and parsing iut to get certain text from it however I have found the my parsing doesnt work (resulting in crashes) when using 3G. It seems that the returned html doesn't have line feeds in it like it does when using WiFi.

Is this something the mobile network is doing, or something the iPhone is doing? Is there any way I can change the returned html to make them identical so I can parse them the same?

Darren
  • 10,182
  • 20
  • 95
  • 162
  • 2
    I have used ASIHTTPRequest a lot and i have never experienced this problem at all (not via 3G nor WIFI). I suspect that your (parsing) code is the problem or the source. – Manuel Apr 16 '12 at 16:25
  • The returned HTML is definately different. Just using nslog to view shows line breaks are missing. I split into array using /n to split lines before parsing further and when using 3G I get only a couple of lines instead of hundreds. – Darren Apr 16 '12 at 16:53
  • Odd, could you show your code (both sending and receiving part) so we can help you troubleshoot? – Manuel Apr 16 '12 at 18:37
  • Maybe when you go over WIFI you talk with a proxy server (or even when you go over 3G, depending on your operator). The page can definitively look different. So choose a flexible transport language like HTTP with XML or JSON in the body. – Jonas Schnelli Apr 16 '12 at 18:48

0 Answers0