I'm trying to build a simple tool to upload/download files. It works fine on a regular server, but when I use it in a secured environment (HTTPS) upload works fine, but download fails. It starts with a browser's download window as it it's trying to download and then suddenly tells me that the server can not be accessed.
How can I work around this?