Tatsuhiko Miyagawa <[EMAIL PROTECTED]> writes: > Google seems to deny access via LWP, so live/google.t fails. > I guess the rule is $Header{'User-Agent'} =~ /libwww-perl/
I will remove the 't/live/google.t' from the distribution. It appears they did not like it. Note that Google is very confused when LWP sends it a "Connection" header that contains something else than "Keep-Alive". By default LWP will send "Connection: TE" to something it thinks is a HTTP/1.1 server. The result is a Google refuse to keep the connection alive. This is wrong. The workaround used in 't/live/google.t' was to set the @EXTRA_SOCK_OPTS to suppress the TE header. # Google is confused if we end up sendit it the "Connection: TE" # header and will close the connection. This avoids it. push(@LWP::Protocol::http::EXTRA_SOCK_OPTS, SendTE => 0); I wished there was a way to set up these options on a per server basis. Regards, Gisle