Curl Command
- FTP upload using curl example, format is user:password@site/directory, percent-encoding is needed for special characters, -v show comm details, -T upload file
curl -v -T weathermap.png ftp://nas:%21%40%23@192.168.200.4/nas/
- Common ASCII code for characters, don't send these characters in plain text using curl, or you will receive an error.
!=%21
@=%40
#=%23
$=%24
&=%26
*=%2A
- Example FTP download, -v show Curl details, -o output file name.
curl -v ftp://nas:%21%40%w@192.168.1.10/foo/bar/switch_up_sketchup.png -o switch_up_sketchup.png