catching requests.ConnectionError correctly.  adding the ability to use --file and accept a file from stdin