{"id":535,"date":"2011-07-21T15:47:00","date_gmt":"2011-07-21T15:47:00","guid":{"rendered":"http:\/\/zensonic.dk\/?p=535"},"modified":"2017-04-09T10:03:43","modified_gmt":"2017-04-09T10:03:43","slug":"debugging-unsupported-authentication-scheme-ntlm-errors-while-using-perl-wwwmechanize","status":"publish","type":"post","link":"https:\/\/zensonic.dk\/?p=535","title":{"rendered":"Debugging &#8216;Unsupported authentication scheme &#8216;ntlm&#8221; errors while using Perl WWW::Mechanize"},"content":{"rendered":"<p>Recently I got a really boring task of performing the same task over and over again &#8230; in a GUI. Obviously I am waaay to lazy for that (and bright enough to figure out how big a waste of time that is).<\/p>\n<p>In an instance I fired up vi and started to hack together a little perl script using WWW::Mechanize to do all the work for me. I quickly ran into problem &#8230;. I got &#8216;Unsupported authentication scheme &#8216;ntlm&#8221; errors when trying to fetch the pages. <\/p>\n<p>I played around quite some time before I realized that i missed the Authen::NTLM module. I had the LWP::Authen\/Ntlm and that tricked me for quite some time. I was down to a simple script that just had<\/p>\n<div class=\"codesnip-container\" >#!\/usr\/bin\/perl -w<br \/>\nuse LWP::Authen\/Ntlm;<\/div>\n<p>Before I could see that I missed Authen::NTLM. Once I had that downloaded and installed, things started to work as expected. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I got a really boring task of performing the same task over and over again &#8230; in a GUI. Obviously I am waaay to lazy for that (and bright enough to figure out how big a waste of time that is). In an instance I fired up vi and started to hack together a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,3],"tags":[],"class_list":["post-535","post","type-post","status-publish","format-standard","hentry","category-unix","category-work"],"_links":{"self":[{"href":"https:\/\/zensonic.dk\/index.php?rest_route=\/wp\/v2\/posts\/535"}],"collection":[{"href":"https:\/\/zensonic.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zensonic.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zensonic.dk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/zensonic.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=535"}],"version-history":[{"count":0,"href":"https:\/\/zensonic.dk\/index.php?rest_route=\/wp\/v2\/posts\/535\/revisions"}],"wp:attachment":[{"href":"https:\/\/zensonic.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zensonic.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zensonic.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}