jai_dgl has asked for the wisdom of the Perl Monks concerning the following question:
Thanks#!/usr/bin/perl use LWP::UserAgent; #use HTTP::Request::Common; use HTTP::Headers; use LWP::Debug qw(+); my $url = 'http://ntlmserver:portno/.aspx'; my $File_link = 'http://ntlmserver:portno/sample.txt'; my $ua = new LWP::UserAgent(keep_alive=>1); $ua->credentials('ntlmserver:portno', '', 'username', 'passwd'); $request = HTTP::Request->new( GET => $url, HTTP::Headers->new(user_agent => 'Internet Explorer/6.0', www_auth +enticate => 'NTLM') ); $filename = 'file.pdf'; $ua->mirror( $File_link, $filename )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Put Files in NTLM Server
by Khen1950fx (Canon) on Jul 13, 2010 at 08:26 UTC |