If all you want to do is download the file, try this... # Tested use LWP::Simple;
my $localfile = 'myfile.pdf'; my $remotefile = 'http://historychannel.aestaging.com/egypt/EgyptTeacherGuide.pdf'; open OUT, "> $localfile"; binmode OUT; print OUT get($remotefile); close OUT; Rob -----Original Message----- From: Brian Shade [mailto:[EMAIL PROTECTED]] Sent: Friday, December 07, 2001 11:56 AM To: [EMAIL PROTECTED] Subject: Download a file from the web I am writing a perl script that converts various documents and even websites to text and emails it back to the sender. I have been succesful with converting websites that have Office documents in the url (e.g. http://www.somesite.com/worddocument.doc), however I am not successful with converting urls with pdf files in them. I know I can convert them to text once I have them on my hard drive, but how can I download a PDF file from a website (e.g. http://www.somesite.com/MYfile.pdf)? Any help would be greatly appreciated. Thanks in advance. Brian _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
