def get_filename(disposition):
if disposition:<EOL><INDENT>params = [param.strip() for param in disposition.split('<STR_LIT:;>')[<NUM_LIT:1>:]]<EOL>for param in params:<EOL><INDENT>if '<STR_LIT:=>' in param:<EOL><INDENT>name, value = param.split('<STR_LIT:=>', <NUM_LIT:1>)<EOL>if name == '<STR_LIT:filename>':<EOL><INDENT>return value.strip('<STR_LIT:">')<EOL><DEDENT><DEDENT><DEDENT><DEDENT>
Parse Content-Disposition header to pull out the filename bit.

    See: http://tools.ietf.org/html/rfc2616#section-19.5.1