I’m sending a long string via WWW(myLongString) and the string only seems to get sent (is reflected in my database) if I reduce its length to around 40 lines. I don’t get any post errors (even on really long strings )though, which would indicate that I haven’t reached the max size.
Besides, I read that GET has limitations to size but POST (which I assume the WWW command uses) does not have url length limitations.
?
WWW does use GET or POST.
Its GET if you bruteforce append to the url, its POST if you use WWW with WWWForm, which is what you want to use.
as for the url limitation: ‘lines’ has no meaning as the url is a single line or it is an invalid url, how many letters you can push through varies from platform to platform as the native http layer is used but you won’t send throusands of letters and alike, thats for sure. If you go beyond 3-4 variables you send along you should definitely switch to post out of my view (I personally never use GET, always POST as I’ve had a serialize functionality present in all my programs for a long time to send and receive any kind of object through webservices - thats a thing you will not pull of on GET for granted)
Unsure you can send arrays as I serialize my stuff.
But if you can then it will not be access like your try there, instead you would get the whole array into a variable and then access the distinct elements there. But intuitively I would assume that arrays will not transfer, you will have to send each object on its own or serialize it yourself and deserialize it on the other side (look for a basic implementation of that on the unifycommunity.com wiki - SerializeObject / DeserializeObject page)