I would like to process a web page that contains JavaScript that is sat on a Sharepoint site.
I can access the site fine using -
my $w = WWW::Scripter->new( keep_alive => 1);
$w->use_plugin('JavaScript');
$w->credentials( "www.company.com:80", undef, 'DOMAIN\\user', 'passwor
+d' );
$w->get($url);
print $w->content(),"\n";
However it would appear that the "keep_alive" argument doesn't get passed properly as although the web page gets returned, any external JavaScript references are not fetched.
I get this message (repeated for each referenced script) :
The keep_alive option must be enabled for NTLM authentication to work.
+ NTLM authentication aborted.
couldn't get script http://www.company.com/_layouts/1033/init.js?rev=q
+X%2BG3yl4pldKy9KbPLXf9w%3D%3D: 401 Unauthorized at /usr/local/lib/per
+l5/vendor_perl/5.10.1/HTML/DOM.pm line 494
Has anyone got any idea how I can work around this?
Cheers,
LB.