def parse_request_line(line):
    items = line.split(' ')
    items[0] = items[0].upper()
    if len(items) == 2:
        return tuple(items) + ('0.9',)
    items[1] = urllib.unquote(items[1])
    items[2] = items[2].split('/')[-1].strip()
    return tuple(items)
Given a request line, split it into
dataset/ETHPy150Open dieseldev/diesel/diesel/protocols/http/core.py/parse_request_line