It seems to me that calling HTTP::Message->protocol() has not effect. The
following
perl program shows it. Has anyone seen it? I'm using Apache on NT 4. The
access.log
file shows the first line of the HTTP message. And it's always HTTP/1.0.

Chris

use strict;
use LWP::UserAgent;
my $ua = new LWP::UserAgent;
$ua->agent("AgentName/0.1 " . $ua->agent);

my $req = new HTTP::Request GET => 'http://localhost/hello.html';
$req->protocol("HTTP/1.1");

my $res = $ua->request($req);

if ($res->is_success) {
    print $res->content;
} else {
    print "Bad luck this time\n";
}

_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to