Replies: 1 comment 3 replies
-
You'll have to show me some code |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Guzzle version(s) affected: 7.0.1
PHP version: 7.4.6
Description

I am using Postman for the excel export API testing. I have the response data as shown in the picture below.
After I press "Save Response to a file", it's giving me a html file (response.html) instead of a excel file (the filename should be "transactions_2021-02-27.xlsx") with defined filename. I have checked the response Content-Type header, it's returning text/html. May I know how to set the response Content-Type so that the downloaded file is in excel format instead of html?
Beta Was this translation helpful? Give feedback.
All reactions