The server is based on ThreadingHTTPServer, and the handler is based on BaseHTTPRequestHandler. The file to download is around 267 MB. Yet, when the file is requested, the http server returns curl (52) http (0) (Server returned nothing (no headers, no data) : Empty reply from server). Not always, but highly intermittent. Interesting to note is that in successful runs, the download (of the same file) only took less than 3 seconds. So I am not sure if it is a timeout problem. But, what else could it be? Continue reading...