Uncompress a deflated HTTP attachment before saving to a file
up vote
0
down vote
favorite
Our HTTP server transmits deflated files for download requests by including the following HTTP headers (among others) in the response sent to a client browser:
Content-Disposition: attachment; filename=abcd
Content-Encoding: deflate
Transfer-Encoding: chunked
Content-Type: application/octet-stream
We expect the browser to automatically inflate the received attachment - because of the presence of the 'Content-Encoding: deflate' field - before saving it to a file. At least with Chrome, this is not the case, and the deflated content is stored as is. Any idea why the browser ignores the Content-Encoding directive? How do I get it to transparently inflate before storing the content?
http attachment deflate content-encoding
add a comment |
up vote
0
down vote
favorite
Our HTTP server transmits deflated files for download requests by including the following HTTP headers (among others) in the response sent to a client browser:
Content-Disposition: attachment; filename=abcd
Content-Encoding: deflate
Transfer-Encoding: chunked
Content-Type: application/octet-stream
We expect the browser to automatically inflate the received attachment - because of the presence of the 'Content-Encoding: deflate' field - before saving it to a file. At least with Chrome, this is not the case, and the deflated content is stored as is. Any idea why the browser ignores the Content-Encoding directive? How do I get it to transparently inflate before storing the content?
http attachment deflate content-encoding
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Our HTTP server transmits deflated files for download requests by including the following HTTP headers (among others) in the response sent to a client browser:
Content-Disposition: attachment; filename=abcd
Content-Encoding: deflate
Transfer-Encoding: chunked
Content-Type: application/octet-stream
We expect the browser to automatically inflate the received attachment - because of the presence of the 'Content-Encoding: deflate' field - before saving it to a file. At least with Chrome, this is not the case, and the deflated content is stored as is. Any idea why the browser ignores the Content-Encoding directive? How do I get it to transparently inflate before storing the content?
http attachment deflate content-encoding
Our HTTP server transmits deflated files for download requests by including the following HTTP headers (among others) in the response sent to a client browser:
Content-Disposition: attachment; filename=abcd
Content-Encoding: deflate
Transfer-Encoding: chunked
Content-Type: application/octet-stream
We expect the browser to automatically inflate the received attachment - because of the presence of the 'Content-Encoding: deflate' field - before saving it to a file. At least with Chrome, this is not the case, and the deflated content is stored as is. Any idea why the browser ignores the Content-Encoding directive? How do I get it to transparently inflate before storing the content?
http attachment deflate content-encoding
http attachment deflate content-encoding
asked Nov 5 at 17:51
perplexed
177210
177210
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53159630%2funcompress-a-deflated-http-attachment-before-saving-to-a-file%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password