Ah! I got it working. I would not have been able to do so if you had not pointed out how to display the headers, which were invaluable in debugging. Thank you.

For posterity (since most of the useful information I found about LWP and NTLM I found on PerlMonks): the problem was that I had the wrong NTLM module installed. There appear to be three modules on CPAN called NTLM. I'd found some post saying there were two.

1. There is Authen::NTLM which only goes up to version 0.31 or so. This is not what you want, and when you install it, it will get run, and will not compile properly -- well, that was what happened to me. I uninstalled this entirely.

2. There is the NTLM inside of LWP. Which seems at first to be what you want. But when I ran with Authen::NTLM uninstalled, I got the error "Unsupported authentication scheme 'ntlm'". Which suggests that NTLM is not properly installed. Confusing, since I saw an Ntlm.pm on my hard drive in what looked like the appropriate place! I eventually discovered --

3. http://search.cpan.org/dist/NTLM/. Different from #1, as its version number is 1.05. Also, I believe it somehow installs inside of LWP, or makes itself available to LWP, or something. (I clearly don't know much about how this all works; monks should feel free to correct me.) Once I had installed that, things started working.

Because the server I'm using is using HTTPS, I also had to futz some with certificates and passphrases, but that is incidental to the above problem, which was the big one.

Thanks again for the help.

Jessica


In reply to Re^4: LWP + NTLM over HTTPS? by jphekman
in thread LWP + NTLM over HTTPS? by jphekman

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.