FTP Question
Mark Schonewille
europe at ehug.info
Fri Jan 27 09:38:53 EST 2006
If you enable passive FTP, you have to set Rev's ftp mode to
passive as well:
libURLSetFTPMode "passive"
Best,
Mark
Gregory Lypny wrote:
> Hello Everyone,
>
> The handler below used to work when I was running Panther, but no
> longer under Tiger.
>
> on mouseUp
> put "Now this field is empty." into fld "x"
> libURLSetFTPMode "active"
> get url ("ftp://username:password@IPAddress/Users/username/
> Documents/Folder/theFile.txt")
> cleanLineEndings it
> put it into fld "x"
> put "Lines:" && the number of lines in it & cr & \
> "The result:" && the result into fld "X"
> end mouseUp
>
> on cleanLineEndings @pText
> replace crlf with return in pText
> replace numToChar(13) with return in pText
> end cleanLineEndings
>
> I'm simply trying to download a text file from a remote Mac that
> acts as a server. On the remote Mac, I have enabled FTP Access in
> Sharing preferences, enabled Passive FTP mode, enabled the firewall,
> and have even tried creating a separate firewall rule (opening ports
> 20-21, 1024-65535). I have toggled each of these settings and have
> tried with the firewall turned off, but nothing seems to work. The
> result of my "get URL" command is empty. I verified that I am able to
> connect using Interarchy, an FTP client.
>
> Any suggestions would be most appreciated.
>
> Greg
--
eHUG coordinator
mailto:europe at ehug.info
http://www.ehug.info
http://home.wanadoo.nl/mark.sch
http://www.economy-x-talk.com
Please inform me about vacancies in the field of
general economics at your institute. I am also looking
for new freelance programming projects.
More information about the use-livecode
mailing list