Skip to main content
Inspiring
July 6, 2011
Question

Maximum size of a URLRequest? [iPhone]

  • July 6, 2011
  • 3 replies
  • 940 views

My UrlRequest hangs at the PROGESS event when the result is too large. Currently, it says 1256 bytesLoaded of 0 bytesTotal.(which is the wrong way around, but it does have these values) and nothing happens.

When I change my api to return less data, the application works fine. So is there a max that I should know about?

This topic has been closed for replies.

3 replies

July 12, 2011

Hi Nielzz,

Can you please let us know about the size of the result your application returns, when this behavior is encountered?

Also, please share the code snippet, if you can.

Thanks.

July 8, 2011

Hi Nielzz,

There seem to a problem with the ProgressEvent for large URLRequest responses.

Thank you for reporting the issue. We are looking into this.

Participating Frequently
July 6, 2011

This might seem like a silly question, but are you tracing the data call in a packet sniffer like Charles Proxy to make sure the issue is with the Flash movie and not your back end function?  I haven't seen any issues with large data calls.

NielzzAuthor
Inspiring
July 7, 2011

Thanks for your effort. I should have been more clear.

The app works fine from the desktop.

After putting it on the phone, it hangs on large data sets from the server.

The error is not on our side because the desktop version performs as expected.

I would try and debug this further, but debugging is very time consuming right now and we are on a deadline.

Participating Frequently
July 7, 2011

I would still approach it the same way.  I'd run the app in debug mode and also set up a packet sniffer.

The idea is that you need to isolate the bug since you have 3 parts to your system:

  1. Flash
  2. PHP
  3. mySQL

The packet sniffer will confirm that the bug isn't in PHP or mySQL, while the debugger will tell you if you have a bug in your code.  I don't think there's a shortcut to this.