Support rfc5987 filename in Content-Disposition
See original GitHub issueSee the filename*
directive here. This directive is used to encode UTF-8 filenames as HTTP headers must only contain ASCII characters. Examples based on the RFC:
filename*=iso-8859-1'en'%A3%20rates
filename*=UTF-8''%c2%a3%20and%20%e2%82%ac%20rates
I think we can use this module to parse the directive.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Use of the Content-Disposition Header Field in the Hypertext ...
The "filename*" parameter (Section 4.3), using the encoding defined in [RFC5987], allows the server to transmit characters outside the ISO-8859-1 character set, ...
Read more >Encode filename according to rfc 5987 in python / tornado
From How to encode the filename parameter of Content-Disposition header in HTTP? I learnt that the encoding defined in RFC 5987 is used...
Read more >Content-Disposition - HTTP - MDN Web Docs
The parameters filename and filename* differ only in that filename* uses the encoding defined in RFC 5987. When both filename and filename* ...
Read more >Filename* parameter not supported in Content-Disposition ...
It looks like the multipart parser does not support extension notation (RFC 5987) for filename parameter. I am getting the following error: ...
Read more >Use of the Content-Disposition Header ... - greenbytes GmbH
HTTP/1.1 defines the Content-Disposition response header field, ... except that "filename*" uses the encoding defined in [RFC5987] , allowing the use of ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Trying to download a excel file, for example: https://www.cepea.esalq.usp.br/br/indicador/series/boi-gordo.aspx?id=2, I am getting the error
TypeError: invalid parameter format
.Yeah, dead standard indeed. But unsure how often you encounter it. Anyway, I’m going to have a look at it and do a PR to them.