mpalmer12345
Programmer
I am trying to use the LWP:: Simple command. When I do the following, all I get is the simple webpage link returned to me, not the HTML code!
<form name="form3"
METHOD="POST" ACTION="/cgi-bin/Scrip01.cgi">
<p>ENTER THE URL OF WEBSITE PAGE:</p>
<input type="text" name="urlval" size="100">
<input type="submit" value="ENTER">
THIS GOES TO Scrip01.cgi
#!/usr/bin/perl
use LWP::Simple;
use CGI;
my $cgi = new CGI;
my $text = $cgi->param("urlval");
print "Content-type: text/html\n\n";
print "$text\n";
SO, WHEN USER INPUTS
HE GETS BACK, LITERALLY
What's weird is that this was working for me last week on the same server under a different name!
<form name="form3"
METHOD="POST" ACTION="/cgi-bin/Scrip01.cgi">
<p>ENTER THE URL OF WEBSITE PAGE:</p>
<input type="text" name="urlval" size="100">
<input type="submit" value="ENTER">
THIS GOES TO Scrip01.cgi
#!/usr/bin/perl
use LWP::Simple;
use CGI;
my $cgi = new CGI;
my $text = $cgi->param("urlval");
print "Content-type: text/html\n\n";
print "$text\n";
SO, WHEN USER INPUTS
HE GETS BACK, LITERALLY
What's weird is that this was working for me last week on the same server under a different name!