Download Text File Retrieves HTML Page

Version: desktop app, Windows 10

Objective: authenticate and then download a text file.

Results: I receive a 302 and a 200 response, which I believe means the authentication worked. I get a session cookie. When I use the cookie to then retrieve a text file, the result is a page of HTML. However, in a browser the file downloads fine. The headers show the server is using gzip compression. Any suggestions?

Postman has very limited access to the local file system.

Postman is a client that can be used to access an API.

It is not a browser, and doesn’t have the same access to the file system.

Is it returning an HTML page or a base64 encoding of the file?

If you select the “preview” tab, it might be able to render the file if the server returns the correct headers. I know it works if the file is a PDF, but probably won’t work with compressed zipped files.