Re: [Python-Dev] [ 1673007 ] urllib2 requests history + HEAD

From: Facundo Batista <facundo@taniquetil.com.ar> This patch was posted by "koder_ua".
I think that Request must have a "request type" parameters, so people can send "HEAD" requests easily.
So, I'll close this patch as "Rejected", for this reason, if anyone raises objections.
This is probably a misunderstanding. Request's history don't store in the "module".They store in two places: 1) In Request object (for current request, so they would be destroyеd with it); 2) In HTTPConnection object (while request redirects). In HTTPConnection history stores only for current served Request. Even if You use the same HTTPConnection for many Requests, they (HTTPConnection) clear history every time when new Request starts. # from httplib HTTPConnection.putrequest patched str = '%s %s %s' % (method, url, self._http_vsn_str) self._output(str) self.sended_hdrs = [str] <<< previous history die here ___Full history for all processed request didn't not stored in any place____. --- KDanilov aka koder(aka koder_ua)
participants (1)
-
KoDer