On Tue, Feb 25, 2003 at 12:49:54AM +0300, Ilya Martynov wrote: > >>>>> On Sun, 23 Feb 2003 23:29:49 +0300, Ilya Martynov <[EMAIL PROTECTED]> said: > > >>>>> On Sun, 23 Feb 2003 12:27:37 -0500, Rocco Caputo <[EMAIL PROTECTED]> said: > RC> On Sun, Feb 23, 2003 at 10:07:30AM +0300, Ilya Martynov wrote: > >>> > >>> I'm trying to write HTTP proxy with POE so I've tried to use > >>> POE::Component::Client::HTTP to proxy HTTP requests to the actual web > >>> servers. The problem is that I don't see how I can get response code > >>> and message (i.e. '200 Ok', '404 Not Found', etc) from web server when > >>> I use POE::Component::Client::HTTP in streaming mode as in streaming > >>> mode response handler only recieves HTTP::Headers object which doesn't > >>> have this information. I've checked sources/docs to find any > >>> workaround but I've not found anything. Am I missing something? > > RC> I think you're right. HTTP::Headers doesn't include the status code. > RC> Client::HTTP needs to do something else, but I'm not sure what. > RC> Suggestions are welcome. > > IM> It could just return HTTP::Response object like in non-streaming mode. > > See parch after my signature which implements this. Downside is that > it breaks some backward compatiblity.
[patch] Thanks for the patch. It's applied and will appear in the next release. People using Client::HTTP for streaming applications should apply the patch locally and explore the implications of this change. I will not be releasing PoCo::Client::HTTP for at least a few days, to give people time to try the patch, work around the change, or suggest something which will preserve the current behavior. -- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
