Use the REST API to get the deployment file.
Multiple deployment.cfgs can be using the same host:post so don't use host:post as the identifier. Instead consult the REST API with authentication done.