FTP problem
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
FTP problem
When i connect to ftp server with rev stack or standalone, every line of any message that it receive from the server ends with some weird box. I wanted to post it here but it can't be copied.
What can be the problem?
What can be the problem?
BIX
OK, i will be more specific.
Here is the simple script:
So, this works. But every line that is received from FTP server (i tried many of them) ends with box.
I use Win Xp SP2. On Vista I didn't have these problems.
Here is the simple script:
Code: Select all
on mouseUp
open socket "localhost:21"
read from socket "localhost:21" with message gotData
end mouseUp
on gotData som,dat
put dat & cr after fld "someFld"
read from socket "localhost:21" with message gotData
end gotData
I use Win Xp SP2. On Vista I didn't have these problems.
BIX
Hi BIX,
This won't work, unless you have a desire to figure out the FTP protocol yourself. Search for "ftp" in the docs and you will find 6 or 7 useful commands and functions.
Best,
Mark
This won't work, unless you have a desire to figure out the FTP protocol yourself. Search for "ftp" in the docs and you will find 6 or 7 useful commands and functions.
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
This actually "works", it receives messages from server, like welcome message and other, but with that weird box.
When I use script:
it answers the list of files on the server, but, i repeat, with some box at the end of each line.
When I use script:
Code: Select all
answer url "ftp://localhost/"
BIX
BIX,
As malte explained, this is probably due to line endings. Try this:
put url "ftp://localhost/" into myList
put chartonum(-2) of myList & cr & chartonum(-1) of myList
What do you get?
Mark
As malte explained, this is probably due to line endings. Try this:
put url "ftp://localhost/" into myList
put chartonum(-2) of myList & cr & chartonum(-1) of myList
What do you get?
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Location: Aalst, Belgium
- Contact:
Or you can replace the extra carriage returns like this:
Hope this helped,
Jan Schenkel.
Code: Select all
put URL "ftp://localhost/" into theList
replace CRLF with LF in theList
answer theList
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com