def _get_postvalue_from_absoluteURI(url):
cache = _get_postvalue_from_absoluteURI.cache<EOL>path = cache.get(url, '<STR_LIT>')<EOL>if not path:<EOL><INDENT>scheme,authpath = url.split('<STR_LIT>')<EOL>s = authpath.split('<STR_LIT:/>', <NUM_LIT:1>)<EOL>if len(s) == <NUM_LIT:2>: path = '<STR_LIT>' %s[<NUM_LIT:1>]<EOL>if len(cache) > _get_postvalue_from_absoluteURI.MAXLEN:cache.clear()<EOL>cache[url] = path<EOL><DEDENT>return path<EOL>
Bug [ 1513000 ] POST Request-URI not limited to "abs_path"
    Request-URI = "*" | absoluteURI | abs_path | authority

    Not a complete solution, but it seems to work with all known
    implementations.  ValueError thrown if bad uri.