How to tell a zip file is password protected from the HTTP response?

Viewed 59

When I download a zip file I want to scan the header and body from its HTTP response to see whether the zip file is password protected. How can I do this?

1 Answers

You can't because http response codes are function of web servers and (generally speaking) web server do not care about the content it serve. You will get the same response codes if you download image, text file, archive or music file.

Related