Uploading WAR file via curl request
curl --upload-file path/to/foo.war http://username:password@localhost:8080/manager/text/deploy?path=/foo&update=true