HTTP 1.1 client in Python.
Syver Enstad
syver at NOSPAMcyberwatcher.com
Tue May 29 17:44:53 EDT 2001
Thanks very much Doug. I this solution looks a bit more general.
"Doug Fort" <dougfort at downright.com> wrote in message
news:3b13fed8$1_5 at news5.uncensored-news.com...
> Here's how I did it.
>
> while 1:
> response = self._client.getresponse()
> if response.status != 100:
> break
> # 2000-12-30 djf -- drop bogus 100 response
> # by kludging httplib
> self._client._HTTPConnection__state = httplib._CS_REQ_SENT
> self._client._HTTPConnection__response = None
>
> I submitted this as bug #227361 on SourceForge.
More information about the Python-list
mailing list