actionscript 3 - AS3 FTP Programming and the Socket and ByteArray Classes -


sorry subject line sounding nerdier harry potter title.

i'm trying use as3's socket class write simple ftp program export air app in flex builder 3. i'm using ftp server on local network test program. can connect server (the easy part) can't send commands. i'm pretty sure have use bytearray class send these commands there's crucial piece of information i'm missing apparently. know how this? thanks! dave

the ftp protocol predates utf encoding. switch ansi/ascii better results. if opt writemultibyte instead of writeutfbytes, aware buggy in linux. here's 1 way around it.

there's question here line ending turns out culprit, make sure right (as suggested above).

as said before, if running web, socket connections require crossdomain policy, not file based on http. recent changes security rules mean socket based connection must first crossdomain policy server hosted on port 843 of target host.

quoting adobe:

a swf file may no longer make socket connection own domain without socket policy file. prior version 9,0,115,0, swf file permitted make socket connections ports 1024 or greater in own domain without policy file.

http policy files may no longer used authorize socket connections. prior version 9,0,115,0, http policy file, served master location of /crossdomain.xml on port 80, used authorize socket connection port 1024 or greater on same host.

essentially, means must in control of target ftp host, , install supplementary software on working.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -