packing arrays to send to server on-rev issues
Posted: Wed Jun 26, 2013 6:59 pm
When I ran this on my local server:
function unPackArray pData, returnMe
local tError
try
put arrayDecode( URLdecode(pData) ) into pData
if pData = empty then
get doError ("error.10.no data received on server side.", returnMe)
else
return pData
end if
catch tError
get doError ("error.20.could not unpack on server side.", returnMe)
end try
end unPackArray
it unpacks the array and works nicely.
When I run this script when it is on on-rev. pData end up being empty and it returns my error message.
Since it is the same script, but performsn different, I thought someone on this board might have an idea of where else to dig.
-Nick
function unPackArray pData, returnMe
local tError
try
put arrayDecode( URLdecode(pData) ) into pData
if pData = empty then
get doError ("error.10.no data received on server side.", returnMe)
else
return pData
end if
catch tError
get doError ("error.20.could not unpack on server side.", returnMe)
end try
end unPackArray
it unpacks the array and works nicely.
When I run this script when it is on on-rev. pData end up being empty and it returns my error message.
Since it is the same script, but performsn different, I thought someone on this board might have an idea of where else to dig.
-Nick