LambethBoy has asked for the wisdom of the Perl Monks concerning the following question:
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 -
Cheers,
LB.
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) :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";
Has anyone got any idea how I can work around this?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
Cheers,
LB.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Using WWW::Scripter with NTLM authentication
by rowdog (Curate) on Feb 02, 2011 at 17:47 UTC | |
by LambethBoy (Initiate) on Feb 03, 2011 at 10:55 UTC | |
by rowdog (Curate) on Feb 03, 2011 at 21:49 UTC | |
by LambethBoy (Initiate) on Feb 04, 2011 at 10:18 UTC | |
by rowdog (Curate) on Feb 04, 2011 at 10:41 UTC |
Back to
Seekers of Perl Wisdom