Page 1 of 1
uploading and downloading data at the web
Posted: Sun Dec 26, 2010 9:46 pm
by abartolome
At IOS, it seems that the only way to send data to a server is POST command.
I undertand that I can use POST to send data to a cgi script, which could return to me some new data.
It runs at MAC OSX stacks.
THE QUESTION
When a do a POST command at IOS, where can I find the returned buffer?
At MAC OSX I can use "it" variable.
ie.
post vdata to URL vURL
put it into field myfield
Re: uploading and downloading data at the web
Posted: Mon Dec 27, 2010 1:52 pm
by splash21
Hi, I just tried it with a quick app with one button;
Code: Select all
on mouseUp
post "apple=1" to url "http://www.splash21.com/banana.php"
answer it
end mouseUp
It worked OK on my iPod touch - just returns a random string.

Re: uploading and downloading data at the web
Posted: Mon Dec 27, 2010 4:26 pm
by abartolome
Thanks very much.
But it does not work. I have checked your script copies and pasted to a button without results.
In fact, POST commands runs OK at the MAC OSX stack but they do not at Simulator IOS.
Some suggestion? Perhaps about simulator version (I've the last one)? Any problem with configuration?
Thanks
Re: uploading and downloading data at the web
Posted: Mon Dec 27, 2010 4:52 pm
by splash21
LiveCode 4.5.2 (Macbook Pro)
iOS Simulator 4.2 (235)
Works in stack, in simulator and on device (iPod touch 1st generation)
Not sure why it doesn't work for you

Re: uploading and downloading data at the web
Posted: Mon Dec 27, 2010 5:31 pm
by JosepM
Also work for me..
Salut,
Josep
Re: uploading and downloading data at the web
Posted: Fri Jan 14, 2011 1:56 pm
by murmac
Thanks very much.
But it does not work. I have checked your script copies and pasted to a button without results.
In fact, POST commands runs OK at the MAC OSX stack but they do not at Simulator IOS.
Some suggestion? Perhaps about simulator version (I've the last one)? Any problem with configuration?
Thanks
Doesn't work for me too.
Re: uploading and downloading data at the web
Posted: Sat Jan 15, 2011 11:00 am
by Kangaroo SW
Try it on a real device !
Cheers
Rolf
