Forum Moderators: coopster & phranque

Message Too Old, No Replies

Uploading files

I can't get the files I need

         

adni18

11:04 am on Oct 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is it possible to access a file outside of a server? (Like [someoneelsessite.com...] I need this for an uploading script.

cyberws

3:08 pm on Oct 6, 2004 (gmt 0)

10+ Year Member



Yes. You can use curl to grab a file or the LWP::Simple module:

<CODE>

my $url="http://www.somedomain.tld/page.html";
use LWP::Simple;

my $arg = shift;
$arg="$url";

$content = get($arg);
die "Could not retrieve $arg" unless $content;

print "$content";