Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: NTLM authentication fails with WWW:Mechanize, fine with LWP::UserAgent

by reasonablekeith (Deacon)
on May 22, 2009 at 12:33 UTC ( #765671=note: print w/replies, xml ) Need Help??


in reply to Re: NTLM authentication fails with WWW:Mechanize, fine with LWP::UserAgent
in thread NTLM authentication fails with WWW:Mechanize, fine with LWP::UserAgent

Both are up-to-date via activestate's ppms.

I'm not sure how to turn on debugging though, I've tried

use LWP::Debug qw(+);
but it doesn't seem to make any difference.
---
my name's not Keith, and I'm not reasonable.
  • Comment on Re^2: NTLM authentication fails with WWW:Mechanize, fine with LWP::UserAgent
  • Download Code

Replies are listed 'Best First'.
Re^3: NTLM authentication fails with WWW:Mechanize, fine with LWP::UserAgent
by Anonymous Monk on May 22, 2009 at 12:40 UTC
    Both are up-to-date via activestate's ppms.

    Then they are not up-to-date (at least WWW::Mechanize isn't up to date, the version on activestate's repository is ancient).

    I'm not sure how to turn on debugging though, I've tried

    perldoc LWP::Debug

    use LWP::UserAgent; $ua = LWP::UserAgent->new; $ua->default_header('Accept-Encoding' => scalar HTTP::Message::decodab +le()); $ua->add_handler("request_send", sub { shift->dump; return }); $ua->add_handler("response_done", sub { shift->dump; return }); $ua->get("http://www.example.com");
      I realise activestate is going to be behind, but I'm a bit tied on that one, with no access to a compiler, (the machine I'm on is a restricted build).

      The debug doesn't really help either, it's only showing the one unauthorised response, just with a bit more detail, ie full headers, but nothing I can interpret as a problem

      Ta, Rob

      ---
      my name's not Keith, and I'm not reasonable.
        Dammit Jim, I'm a programmer, not a psychic :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2019-12-11 03:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?