I am wondering how to finalize the shell command. The current version allows mysqldump output to be packaged in sql.gz and sent via ssh
ssh <server1> "mysqldump -u <user> -p<password> <db> | gzip | ssh <server2> 'cat > /file/path/to/save/filename.sql.gz'"
How to modify it so that it would send not to /file/path/to/save/filename.sql.gz , but via http request to the script?