Did you see the code above?
The script generatyes browser output not a mail file.
So I don't think adding mime module would fix the problem,or am I wrong?
In the case,anyway,where should I add that module in the script??
I apologize.Ignoring your request was accidental...
here is the whole code:
#!/usr/bin/perl
# localhost
# Configuration
# pswd
$password = 'blah';
full URL of script.cgi
$admin_url_base = 'http://www.blahblah.net/script.cgi';
# minimum number of pages you want to...
I done some tests and I esthabilished that is not a client issue.
So, it's a sort of problem with the script;
Here is the mailing sub code:
# prints report
print "Content-type: text/html\n\n";
print "<html><body>\n";
print "<p><font face=Arial Black size=4><b>mail...
Well, the client shows me source-view code pages with any html code, as I verified...
So the problem could not be the mail code generated from the script, but, again, it regards the mail client...
The settings are ok.so I'm not able to understand what's going wrong...
Hello,
I have a perl .cgi script that generates a report and sends it via e-mail,but when I open the mail I have that page only in source-view, instead of the properly html format;
What can be the problem?
Here is the report code:
Content-type: text/html
<html><body>
<p><font face=Arial...
Hello,
I have this script to manage web sites that redirects to a certain page, but also opens an annoying popup advertising window when redirecting happens.
Now, I would remove that pop up window,but, since this script counts 10,000 lines or so, it doesn't seem to be a simple work...
Could...
OK.
As regard the output your code works fine on localhost but only a blank page appears if I request an url over the internet...
Still,no data was added to the form...
Here is also the form code
<form name="create" method=post action="$scriptname?createpages">
<input type=hidden name="pass"...
So,should I replace that code line
print $ua->request($req)->as_string;
with that one?
my $response = $ua->request($req);
if ($response->is_success) {
print $response->content; # or whatever
} else {
die $response->status_line;
}
Also, would that synthax work as cgi script?
Thanks...
Also,I would add that I cannot follow the examples you linked for me as I'm running Perl only as cgi script on Apache web server running under Win XP. So I haven't perl console...
Hello MillerH and thanks for the reply.
>>>Is "as_string" part of the specification for LWP::UserAgent?
Yes.
>>>Also, I believe that your use of ?newpage' in your POST will be ignored. If you're wanting to set a newpage cgi parameter, than it should be included in the following array ref...
Hello,
Wondering what's wrong in that cgi script:
#!perl
use HTTP::Request::Common qw(POST);
use LWP::UserAgent;
$ua = LWP::UserAgent->new;
my $req = POST 'http://localhost/cgi-bin/control.cgi?newpage',
[ pass => 'blah' , text => 'xxx'];
print "Content-type...
Hello again,
I'm debugging a script and I'm wondering if the variable below is set correctly (script is not mine)in order to enter data in a form of a web page:
$req = (POST $admin_url,
[
'pass' => $password,
'dataflag' => '1',
'pagenames' => $klist
]);
$response =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.