I'm dynamically generating a zip file using my PHP application and printing it with all the necessary headers including "Content-Length". It is working fine when I download the file using wget but not getting downloaded in browser.
What could be the problem here? How I can debug this issue?
If I do not add Content-Length header I could download the file using browser.