flash - ActionScript 3 FTP via NativeProcess -


i'm writing air application connects subversion repo, gets diff, , downloads them deploy website. i'm doing via nativeprocess runs '/usr/bin/svn' , execute necessary svn commands.

that's working uploading them website. can't quite figure out how upload files website via ftp terminal command using '/usr/bin/ftp'

does know how can accomplish uploading file ftp air?

edit: solved!

instead of using ftp switched curl using following command:

curl --ftp-create-dirs -u uname:pass -t /users/me/documents/subsync/tmp_109065090/sub/index.html ftp://ftp.mysite.net:21//web/content/sub/index.html 

couple things note

  1. be sure add --ftp-create-dirs
  2. after port use double slash bypasses ftp's redirect (used when ftp account sub-account or in shared hosting environment).
  3. for ssl add --ftp-ssl curl command


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -