Don't start the browser download - API with PythonAnywhere

Resolved

Hi all, I'm new on FF. I try to explain my problem in schematic way.

I'm developing an app that launch a python script (through API). The script generates a csv file in the pythonanywhere server.

Then, in FF I run another API that runs another python script that open the file and returns the response (image on the left).

If I run the script in local, my browser starts to download the file, but in FF than doesn't happen.


I only can update a variable and print the file content in a text widget.

Is this the right method to download a file to local from another server?

I've used this method because PA not permit to download the file with a direct link to the server.

Any suggestions?

Thanks

4
10 replies