Skip to main content
Participant
April 19, 2008
Question

Sending large amounts of XML data

  • April 19, 2008
  • 4 replies
  • 402 views
I'm attempting to send a large amount of XML data to a PHP script and I'm having a bit of trouble. When I trace() the data that's being sent, I see all of the data, but when I check to see what the PHP script received, it shows only the first 65535 characters. Everything after that is missing. I'm following the advice of Joey Lott from his ActionScript 3.0 Cookbook, and I'm using $GLOBALS['HTTP_RAW_POST_DATA'] in the PHP script to retrieve the data sent to it.

Has anyone else run into this issue? What's the best workaround?
This topic has been closed for replies.

4 replies

kglad
Community Expert
Community Expert
April 20, 2008
you're welcome.
Participant
April 20, 2008
Thanks again, kglad. I'll see what I can come up with.
kglad
Community Expert
Community Expert
April 20, 2008
i don't know any universal way to divide your data into allow chunks, but it shouldn't be too hard to devise something based on what you're now doing and then use a (urlloader load - complete event) loop to send those chunks.
kglad
Community Expert
Community Expert
April 20, 2008
as2's loadvars had a data limit of 64k and that's the limit you're hitting.

i haven't seen anyone post a message about the urlloader having the same limit, but it wouldn't be a shock.
Participant
April 20, 2008
Thanks, kglad. It's good to confirm the source of the problem. Do you have any ideas on how to get around that limit? Is there maybe a quick way to divide it up into 64kbytes and send it in several chunks or something? Or maybe use another function altogether?