-1

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.

Julian Reschke
  • 40,156
  • 8
  • 95
  • 98
Unnikrishnan
  • 2,683
  • 5
  • 22
  • 39

1 Answers1

1

Then the most likely reason is that you're setting an incorrect value. Checking the browser console might help.

Julian Reschke
  • 40,156
  • 8
  • 95
  • 98