Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need help for my webpage-retrieving Script in PERL

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
I need help for my script that should retrieve an ASP-webpage through Perl.
(for example this page:
I only retrieve an Error-Webpage that the script or file isn't located on the server.

I used this Script:
---------------------------------------

#!/usr/bin/perl -w

use IO::Socket;

$host = "$EOL = "\015\012";
$BLANK = $EOL x 2;

foreach $document ( "" )
{

$remote = IO::Socket::INET->new( Proto => "tcp",
PeerAddr => $host,
PeerPort => "http(80)",
);
unless ($remote) { die "cannot connect to http daemon on $host" }
$remote->autoflush(1);
print $remote "GET $document" . $BLANK;
while ( <$remote> ) { print }
close $remote;
}

---------------------------------------

It would be great if anybody could help me ;-)
 
it sounds like it has more to do with the configuration of your web server. can you run other perl scripts on this server? if so, is this perl script set to the same permissions and in the same directory as the others?

? &quot;If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top