In our VB6 application, we are using vbmhwb.dll and downloading a file over the web. The files get downloaded properly, but it returns different values of Content-Length. I discovered that the HTTP headers had different Content-Encoding. Below are the HTTP headers for the same file on different PCs. The files were binary identical after download. So when does Content-Encoding get set? Also, how do I get the actual size of the file from the header?
File 1:
HTTP/1.0 200 OK
Date: Fri, 11 Apr 2014 09:19:15 GMT
Server: Application Server
Content-Disposition: attachment; filename=ABC.csi
Content-Type: text/plain
Content-Length: 671
Connection: close
File 2:
HTTP/1.0 200 OK
Date: Fri, 11 Apr 2014 10:28:06 GMT
Server: Application Server
Content-Disposition: attachment; filename=ABC.csi
Content-Type: text/plain
Vary: Accept-Encoding,User-Agent
Content-Encoding: gzip
Content-Length: 416
Connection: close