Using perl how do you write a script to copy a remote file into your
own site. In my situation want to copy a rss feed from
http://remoteserver/news.xml for example.
Marcos
use LWP::Simple;
# The following functions are provided (and exported) by this module:
get($url)
# The get() function will fetch the document identified by the given
# URL and return it. It returns undef if it fails. The $url argument
# can be either a simple string or a reference to a URI object.
head($url)
# Get document headers. Returns the following 5 values if successful:
# ($content_type, $document_length, $modified_time, $expires, $server)
getprint($url)
# Get and print a document identified by a URL. The document is
# printed to the selected default filehandle for output (normally
# STDOUT) as data is received from the network. If the request fails,
# then the status code and message are printed on STDERR. The return
# value is the HTTP response code.
getstore($url, $file)
# Gets a document identified by a URL and stores it in the file. The
# return value is the HTTP response code.
jbl