Re: Escaping filename in http response

2005-03-14 Thread Fuzzyman
Nice one - thanks. Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: Escaping filename in http response

2005-03-14 Thread Richard Brodie
"Fuzzyman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Which is the right function to escape the filename urllib.quote or > urllib.quote_plus ? Neither. Just drop quotes around it, after having sanitized it (assuming it's plain ASCII). Alternatively you could use the email pack

Escaping filename in http response

2005-03-14 Thread Fuzzyman
I know I *could* look this up in the relevant RFC... but I thought someone might know it off the top of their head. I'm offering files for download via a CGI. I am inserting the filename into the relevant http header. Where the filename contains spaces firefox truncates it - which is probably corr