perlquestion cbartowski29 <p>Hello Monks, I'm really new to Perl Script and I'm developing a script to access a URL wiht NTLM authentication and save the response content in a folder. This content is a .xls, .doc, .pdf, .ppt, etc file. Actually,I was able to develop the NTLM authentication code. But my other requirement is to save the response content to a folder in the server. Can you help me with this?. Here's the sample code:</p> <code> #!/usr/bin/perl use LWP::UserAgent; use HTTP::Request::Common; my $url = ""; my $ua = new LWP::UserAgent(keep_alive => 1); my $username = 'ap\<username>'; my $password = '<password>'; $ua->credentials('', '', $username, $password); my $req = GET $url; print "--Peforming request now...---------\n"; my $res = $ua->request($req); print "--Done with request ...---------\n"; if ($res->is_success) { print $res->content; } else { print "Error: " . $res->status_line . "\n"; } exit 0; </code> <p>I want to save the $res->content to a folder in the server. The value of $res->content is a file(excel, word, powerpoint, etc) Thanks in advance</p>