<div dir="ltr"><div><br></div>I'm trying to automate getting a directory listing and some files from a MS project server. I have this:<div><br></div><div><div>my $mech = WWW::Mechanize->new() || die "Couldn't set new $!";</div><div># $mech->credentials($User,$Pass);</div><div>$mech->credentials( $TopURL, '', $User, $Pass);</div><div>$mech->cookie_jar(HTTP::Cookies->new(</div><div> file =>"mechcookies.txt",</div><div> autosave => 1));</div><div>$mech->get($TopURL) || die "Couldn't get Top :$!:";</div><div><br></div><div>I have verified $TopURL, $User and $Pass. Whenever I run the code it throws an error that I'm unauthorized.</div><div><br></div><div>Any ideas?</div><div><br></div><div>Robert</div><div><br></div><div><br></div>-- <br>:wq!<br>---------------------------------------------------------------------------<br>Robert L. Harris<br><br>DISCLAIMER:<br> These are MY OPINIONS With Dreams To Be A King,<br> ALONE. I speak for First One Should Be A Man<br> no-one else. - Manowar
</div></div>