What code would you use to send data over the internet?

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
user#606
Posts: 217
Joined: Sun Jan 27, 2008 12:25 pm
Contact:

What code would you use to send data over the internet?

Post by user#606 » Sun May 03, 2009 10:17 am

A simple senario would be to send the contents of a field from one unknown computer to the hard drive of a single known computer. Each file sent would have a unique file name.
Any ideas?

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Sun May 03, 2009 3:39 pm

If the remote known computer is running an FTP server, it can be as simple as

Code: Select all

put field "Content" into URL "ftp://user:password@example.com/uniquefilename.txt"
However, if there is no FTP server running, things will be a bit more complicated, as you'll have to write the code for a server application to run on that remote known computer.

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

user#606
Posts: 217
Joined: Sun Jan 27, 2008 12:25 pm
Contact:

Post by user#606 » Sun May 03, 2009 4:54 pm

Thank you, that piece of code looks clear enough. However, I dont know what an ftp server is. I presume a normal PC connected to the internet is http. So what do we need to do the make it ftp?

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Mon May 04, 2009 5:44 am

If the computer is a Windows server that has MS Internet Information Services (IIS) installed, it's as simple as ticking a box to activate the FTP server. However, there's a license cost involved, which you may want to avoid - in such case, FileZilla Server may be a good free/opensource alternative.

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

sashu100
Posts: 2
Joined: Tue Mar 31, 2009 12:51 pm

re

Post by sashu100 » Mon May 25, 2009 3:56 pm

Thanks for your useful information... :D

BPO services india

Post Reply