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?
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?
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.