Subject: | Proxy error on Server error 500 |
Date: | Sun, 8 Jul 2012 08:07:55 +0000 |
To: | "bug-HTTP-Proxy [...] rt.cpan.org" <bug-HTTP-Proxy [...] rt.cpan.org> |
From: | "Ummels, R." <r.ummels [...] vumc.nl> |
Program: HTTP:Proxy-025
Perl: v5.14.2
OS: Linux 3.2.0-26-generic-pae #41-Ubuntu SMP Thu Jun 14 16:45:14 UTC 2012 i686 i686 i386 GNU/Linux
When a remote server gives an error:
[Sun Jul 8 09:55:00 2012] (9497) RESPONSE: 500 Server closed connection without sending any data back
This is returned in the client browser:
Server closed connection without sending any data back at /usr/local/share/perl/5.14.2/Net/HTTP/Methods.pm line 345.
I have tried to modify the response, in case it could be solved this way:
our $check_response = HTTP::Proxy::HeaderFilter::simple->new(
sub {
my ( $self, $headers, $message ) = @_;
if ($message->is_error) {
# print STDOUT "*****", $message->status_line, "*****\n";
$self->proxy->response($server_error_page);
}
}
);
But still get the error message in the client. I'm a newbie, so I'm not sure this is a bug or something which can be handles from my side.
I hope BooK can look into this.
Thanks,
Roy