'Error 307 -- relocated, but turn POST into error.'

def http_error_307(self, url, fp, errcode, errmsg, headers, data=None):

    if (data is None):
        return self.http_error_302(url, fp, errcode, errmsg, headers, data)
    else:
        return self.http_error_default(url, fp, errcode, errmsg, headers)
        return
