

def reset(self, url, data=None, query=None, method='GET', encoding=DEFAULT_ENCODING, language=DEFAULT_LANGUAGE, useragent=DEFAULT_UA, accept=DEFAULT_ACCEPT, extraheaders=None, strict=True, proxy=None, cookiejar=None, accept_encoding=None):
    self.clear_state()
    self._url = urlparse.UniversalResourceLocator(url, strict)
    self._proxy = proxy
    if accept_encoding:
        assert (accept_encoding in ('identity', 'gzip', 'deflate'))
        self._accept_encoding = accept_encoding
    h = httputils.Headers()
    if cookiejar:
        c = cookiejar.get_cookie(self._url)
        if c:
            h.append(c)
    h.append(httputils.UserAgent(useragents.USER_AGENTS.get(useragent, useragent)))
    h.append(httputils.Accept(accept))
    h.append(httputils.AcceptLanguage(language))
    h.append(httputils.AcceptCharset(('%s,*;q=0.7' % (encoding,))))
    self._encoding = strict
    self._language = language
    self._query = query
    self._headers = h
    if (extraheaders and isinstance(extraheaders, list)):
        self._headers.extend(map(httputils.get_header, extraheaders))
    if data:
        self.set_data(data)
    else:
        self._data = {
            
        }
    self.set_method(method)

dataset/ETHPy150Open kdart/pycopia/WWW/pycopia/WWW/client.py HTTPRequest.reset/VarMisuse@216/287 `encoding`->`strict`