
June 27th, 2000, 02:40 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
>>I am trying to figure out a way to open and XML file that resides at http://url_1/
You can't open any files reside on someone else's server. Imagine if you can, then you can steal any scripts from anywhere. However, you can GET the OUTPUT of that file on a different URL. Hint, just the OUTPUT of it only.
Again, you need to download->http://www.perl.com/CPAN-local/modules/by-module/LWP/libwww-perl-5.48.tar.gz and Read->http://www.perl.com/CPAN-local/modules/by-module/LWP/libwww-perl-5.48.readme
#!/usr/local/bin/perl
print "Content-type: text/htmlnn";
use LWP::Simple;
$target_file = "http://url_1/xml_file";
my $file = get($target_file);
print "$filen";
|