L
laclac01
I am new to perl, I am having so trouble. For my program, I just want
to log in to my router and then spit out the html to the screen.
here is my code
#!/usr/bin/perl
$original ="http://admin:[email protected]/cgi-bin/sysinfo.cgi";
#$original ="README";
open (FILE, $original);
@lines=<FILE>;
close FILE;
print @lines;
When I try to do it for the file README it works fine, but when I try
it for the website it doesn't work. The address is correct because I
can cut and past it in to a browser and it brings me to the correct
page.
Any suggestions?
to log in to my router and then spit out the html to the screen.
here is my code
#!/usr/bin/perl
$original ="http://admin:[email protected]/cgi-bin/sysinfo.cgi";
#$original ="README";
open (FILE, $original);
@lines=<FILE>;
close FILE;
print @lines;
When I try to do it for the file README it works fine, but when I try
it for the website it doesn't work. The address is correct because I
can cut and past it in to a browser and it brings me to the correct
page.
Any suggestions?