Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: cgi HTML head error

by perlfan (Vicar)
on Oct 27, 2021 at 23:07 UTC ( [id://11138129]=note: print w/replies, xml ) Need Help??


in reply to cgi HTML head error

On a shared host where you have a cgi-bin directory, start off with a simple script. It doesn't even need to be Perl - it could be anything that prints to STDOUT and is executable.

The minimal response from any of these programs is this,

Status: 200 Content-type: text/html <!doctype html> <html> HTML Goes Here </html>

See https://www.perl.com/article/perl-and-cgi/. I also recommend checking out CGI::Tiny. If you're on a shared host that's "powered" by cPanel/WHM, then you can likely install Perl modules locally via the cPanel interface (ask your host if you don't know). There's also cpanm coupled with local::lib.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11138129]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-20 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found