Content-Disposition : attachment; filename="f.txt"

256 views
Skip to first unread message

Ashish Bansal

unread,
Dec 28, 2015, 4:11:41 PM12/28/15
to pu...@googlegroups.com, Ankit Bhatnagar (Google+), Supreet Pal Singh (Google+)
Hi,

Does anyone know what could be the reason for the file not being downloaded even if Content-Disposition header is set correctly ? 

Recently I was working on something and found it very weird that whenever you try to use Google Instant(auto-completion suggestions you get while typing on Google search), XHR request is sent and result has Content-Disposition header with the value : attachment; filename="f.txt".

I wonder what could be the reason for it. (Some other header causing that ? I don't think so.)

You can either try it out or check for request details here[0] (Search for "filename" in this file).


-- 

Regards,
Ashish Bansal

Ashish Bansal

unread,
Dec 29, 2015, 12:33:11 PM12/29/15
to pu...@googlegroups.com, Ankit Bhatnagar (Google+), Supreet Pal Singh (Google+)
Well I found that Web Browsers just ignores the Content-Disposition header in XHR requests.
 
-- 

Regards,
Ashish Bansal
Reply all
Reply to author
Forward
0 new messages