Perl CGI Issue
1
Name:
Anonymous
2008-02-11 16:28
How can I get my Perl CGI script (that will be running via mod_perl) to send a 404 status code for an error page? The ways that I have tried don't display this in the access_log or don't send the code at all.
Any correct way of doing this?
Thanks.
2
Name:
Anonymous
2008-02-11 17:24
Use Haskell.
3
Name:
Anonymous
2008-02-11 17:34
>>1
I believe that's still an open question in Computer Science; it's NP-Complete.
4
Name:
Anonymous
2008-02-11 17:56
_ _
( \__//)
.' )
__/p q . )
(_p_`, .)
`--'-,-' )
(. )
HAVE YOU READ ( )
YOUR PROGRAMMING ( )
PERL TODAY? ( . ) .---.
( ) ( )
( . ) ( . )
( ) ( . ),
( . `"'` . `)
( . .
(( . . ( .
(( . (
(( ) _( . .
5
Name:
Anonymous
2008-02-11 18:03
6
Name:
Anonymous
2008-02-11 18:08
Use PHP.
7
Name:
Anonymous
2008-02-11 18:13
(that will be running via mod_perl)
Then it's not a fucking CGI script.
8
Name:
Anonymous
2008-02-11 18:14
print "HTTP/4.01 404 Not Found\nContent-Type: text/html\n\n";
9
Name:
Anonymous
2008-02-11 18:24
10
Name:
Anonymous
2008-02-11 18:29
_ _
( \__//)
.' )
__/p q . )
(_p_`, .)
`--'-,-' )
(. )
( )
LLAMAS ( )
FOR ( . ) .---.
OBAMA ( ) ( )
( . ) ( . )
( ) ( . ),
( . `"'` . `)
( . .
(( . . ( .
(( . (
(( ) _( . .
11
Name:
Anonymous
2008-02-11 18:32
Camels and llamas are from the same family of animal (Camelus)
12
Name:
Anonymous
2008-02-11 18:35
>>11
It's actually
Camilidae,
Camelus is a genus.
13
Name:
Anonymous
2008-02-11 18:48
>>7
mod_perl can emulate CGI from what I've heard. OP must mean that.
14
Name:
Anonymous
2008-02-11 18:51
15
Name:
Anonymous
2008-02-12 8:48
use CGI qw(header);
print header(-content => "text/html",
-status => '404 CANOT HAS FILE ;_;');
16
Name:
Anonymous
2008-02-12 10:15
>>15
[b] why the fuck did you indent that print statement[/b]
17
Name:
Anonymous
2008-02-12 10:39
THE FORCED INDENTATION OF PRINT STATEMENTS
18
Name:
Anonymous
2008-02-12 11:36
19
Name:
Anonymous
2008-02-12 12:08
20
Name:
Anonymous
2009-03-06 12:42
The entities in the board to sign up for a reason stick with their ENTERPRISE BULLSHIT since i will hax your anus tonight and make the scan more?
21
Name:
Anonymous
2013-03-18 18:53
ocaml