ftp script to copy folders recursively

hi all

I want a script that will use ftp to copy folder and sub folders from source server to current server. if i use -r switch then it just copies folders for 5 level.

use a utility like scp, rsync, wget, curl, etc...