Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Using WWW::Scripter with NTLM authentication

by rowdog (Curate)
on Feb 03, 2011 at 21:49 UTC ( #886081=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Using WWW::Scripter with NTLM authentication
in thread Using WWW::Scripter with NTLM authentication

I don't see where or why you're cloning the ua but it looks pretty easy to get the ConnCache from the original.

my $ua2 = $ua->clone; $ua2->conn_cache($ua->conn_cache);


Comment on Re^3: Using WWW::Scripter with NTLM authentication
Download Code
Re^4: Using WWW::Scripter with NTLM authentication
by LambethBoy (Initiate) on Feb 04, 2011 at 10:18 UTC

    I'm not explicitly cloning, it happens when WWW::Scripter starts reading referenced JavaScript files (when using the JavaScript plugin). The oroginal HTML document loads fine, I get the NTLM authorisation errors when the .js files are being read.

    Cheers,
    LB.

      Hrm, I hadn't realized that WWW::Mechanize::FAQ says that

      Mech keeps a history of every page, and the state it was in. It actually keeps a clone of the full Mech object at every step along the way.

      So, there's a clone for each step. I'm kind of in over my head here but I don't see anything wrong with your workaround, as long as you're not sending requests from a bunch of different threads or something silly like that.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://886081]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2015-07-06 17:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (80 votes), past polls