Currently I know how to do this:
curl -T file.zip ftp://server.domain.com/ --user username:password
Which will let me do a single file. However I can't figure out how to do it for a directory. I would like to use a similar command and specify a directory instead of a single file and have it upload that directory and all contents maintaining folder structure. How is that done?