Quote:
Originally Posted by qw12er
Yes it does. Thanks.
I still have a question. I need to pass large amount of XML data between my flash app and my php server. For what I know of RESTful rellys on post/push http methods which have a limit of 2megs (if I'm correct).
So how do you pass large amount of data with the RESTful approach ?
|
For one, you could trim down that XML and return it as JSON, haaha. XML adds about 30% more data than JSON just because of all the nasty ass tags...
There is no limit, as far as I know, to the amount of data you can return however you may run into some usability problems. I wouldn't recommend returning an XML file that large at all. Not only is the wait time pretty obscene but that's a lot to parse at once for any client... particularly one that depends on a client machine (flash). I would probably break the request into smaller requests...
Let's say you were returning some data to populate a year long chart. You could make a request per month and parse/populate that data while retrieving the next set...
It's really hard to say without knowing the specifics though, everything is so situational dependent ;)
Edit: On the limits... that can be adjusted via your PHP conf... I think you may be referring to the 2MB default configuration for max post size. Really, that's for the amount of data aloud to be posted TO the server though, not sent from the server on a post request; and it's configurable so you should be good
