RE: Changing Input Filters
> In order for the NTLM authentication to work, the connection to the > upstream proxy must be kept alive during steps 2-5. This means that > elegant solutions like PoCo::Client::HTTP are out of the question > since they explicitly terminate the connection after each request. Forgive me, but... it seems to me that adding KeepAlives to Client::HTTP shouldn't be impossible to engineer. That way you have the larger body of completed work to draw on, but can cause the solution to be implemented in the most "logical" place. My $.02 L8r, Rob #!/usr/bin/perl -w use Disclaimer qw/:standard/;
Changing Input Filters
Is there a way (supported or a hack) to find out what *filtered* data is waiting to be posted to a POE::Wheel::ReadWrite InputEvent? At my workplace, we have an HTTP proxy that requires NTLM authentication. This works great for Internet Explorer users, but Netscape and Mac users (and just about everyone else) are left in the cold. I have started a project to make a proxy server that works like such: 1. Client makes HTTP request to my proxy server and sends basic credentials 2. Proxy forwards request to upstream proxy and replaces basic credentials with NTLM handshake 3. Upstream proxy sends back NTLM challenge 4. Proxy sends back NTLM response 5. Upstream proxy sends back either an HTTP code 407 (Proxy Authorization Required) or the requested page. In order for the NTLM authentication to work, the connection to the upstream proxy must be kept alive during steps 2-5. This means that elegant solutions like PoCo::Client::HTTP are out of the question since they explicitly terminate the connection after each request. I have had moderate success in setting this up using POE and a mix of both POE::Filter::Line and POE::Filter::Block. I know switching filters mid-stream can be tricky and have already attempted to compensate for this by using $heap->{'readwrite'}->get_input_filter->get_pending just prior to switching filters. However, get_pending doesn't tell me anything about the lines queued for posting to my InputEvent. If I switch filters after receiving a blank HTTP header line and some of the HTML content was also slurped into Filter::Line, I end up receiving my get_pending data before the other content. Any help would be greatly appreciated. Thanks, Peter Guzis Web Administrator, Sr. ENCAD, Inc. - A Kodak Company email: [EMAIL PROTECTED] www.encad.com
Re: Event.pm & Redhat 8.0
On Fri, Oct 04, 2002 at 11:37:20AM -0400, L. Leo wrote: > > Yes, I will be posting to perl-loop about this, but I wanted > to know if anyone else has encountered this. > > I have just upgraded to RedHat 8.0 (there are goods and bads to it). > I tried to install Event.pm and it failed the var.t test. Specifically, > it failed at 'my $str = "$var4"'. > > Has anyone else seen this? I have not seen this one before, and I'm the funnel through which most POE bug reports go. -- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sf.net
FYI - Mandrake rpm, perl-POE-0.23-1mdk
FYI, I have contributed perl-POE-0.23 rpm to Mandrake. It's released. Pete --- Begin Message --- [Contrib-RPM] --=-=-= Name: perl-POE Relocations: (not relocateable) Version : 0.23 Vendor: MandrakeSoft Release : 1mdk Build Date: Thu Oct 3 14:58:20 2002 Install date: (not installed) Build Host: bi.mandrakesoft.com Group : Development/Perl Source RPM: (none) Size: 305856 License: GPL or Artistic Packager: Lenny Cartier <[EMAIL PROTECTED]> URL : http://search.cpan.org/search?dist=POE Summary : POE module for perl Description : POE module for perl. POE is a mature framework for creating multitasking programs in Perl. It has been in active development since 1998. It has been used in mission-critical systems such as internetworked financial markets, file systems, commerce and application servers. --=-=-= * Wed Oct 23 2002 Lenny Cartier <[EMAIL PROTECTED]> 0.23-1mdk - for Peter Chen <[EMAIL PROTECTED]> : - 0.23 -- http://www.linux-mandrake.com/en/cookerdevel.php3 --- End Message ---
Event.pm & Redhat 8.0
Yes, I will be posting to perl-loop about this, but I wanted to know if anyone else has encountered this. I have just upgraded to RedHat 8.0 (there are goods and bads to it). I tried to install Event.pm and it failed the var.t test. Specifically, it failed at 'my $str = "$var4"'. Has anyone else seen this? -Leo.