hi. i have recently enabled gzip compression on my server and it works
fine. but i have noticed something wierd.
To protect my self from hotlinking i use a simple code to send my
download with binarysend method. here is the code for an image
download.
Set objStream = Server.CreateObject("ADODB.Stream")
Response.ContentType="image/jpeg"
'response.addheader "content-transfer-encoding", "binary"
response.addheader "Content-Disposition", "attachment;filename="&
filename & ";"
'Response.AddHeader "Content-Length", objStream.Size
objStream.Open
objStream.Type = 1
objStream.LoadFromFile strFilePath
Response.BinaryWrite objStream.Read
objStream.Close
Set objStream = Nothing
when i use this code without gzip compression (although size section
commented) it would send
Content-Length and filename correctly.
after enabling gzip this code stopped to send Content-Length and
filename.
any idea why it does that? is it my coding?
thanks