uploading and downloading data at the web
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 2
- Joined: Sun Oct 03, 2010 1:14 am
- Contact:
uploading and downloading data at the web
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
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
Hi, I just tried it with a quick app with one button;
It worked OK on my iPod touch - just returns a random string.

Code: Select all
on mouseUp
post "apple=1" to url "http://www.splash21.com/banana.php"
answer it
end mouseUp

LiveCode Development & Training : http://splash21.com
-
- Posts: 2
- Joined: Sun Oct 03, 2010 1:14 am
- Contact:
Re: uploading and downloading data at the web
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
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
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
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

LiveCode Development & Training : http://splash21.com
Re: uploading and downloading data at the web
Also work for me..
Salut,
Josep
Salut,
Josep
Re: uploading and downloading data at the web
Doesn't work for me too.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
-
- VIP Livecode Opensource Backer
- Posts: 40
- Joined: Sat Jan 15, 2011 10:57 am
Re: uploading and downloading data at the web
Try it on a real device !
Cheers
Rolf
Cheers
Rolf
