Should probably have more debugging output if it fails; it's scary that we could die and leave traces on the remote system without any knowledge of what to clean up.  Perhaps check if the status_code is not 200, and emit the HTTP code.