Getting quite a few website orders recently, so was trying to improve the callback script on my site that RBS Worldpay invokes to send me details of the purchase. At present I get a rather long unformatted text file with the important stuff buried among lots of junk.
Getting HTTP error 500 from Wordpay so tried to test it from my own form but absolutely nothing is happening. Dug out my perl book and did a short test script but just getting standard "website page not found"
Form:
<form action="cgi-bin/test.cgi" method="post" name="order">
Script:
#!/usr/bin/perl
$html = "Content-Type: text/html
<HTML>
<HEAD>
<TITLE>test</TITLE>
</HEAD>
<BODY>
<H1>Darn it</H1>
<P>Work damn you</P>
</BODY>
</HTML>";
print $html;
Got right file names/paths, permissions (711 & 755) and path to perl. What am I missing? Cheers for any bright ideas.
Getting HTTP error 500 from Wordpay so tried to test it from my own form but absolutely nothing is happening. Dug out my perl book and did a short test script but just getting standard "website page not found"
Form:
<form action="cgi-bin/test.cgi" method="post" name="order">
Script:
#!/usr/bin/perl
$html = "Content-Type: text/html
<HTML>
<HEAD>
<TITLE>test</TITLE>
</HEAD>
<BODY>
<H1>Darn it</H1>
<P>Work damn you</P>
</BODY>
</HTML>";
print $html;
Got right file names/paths, permissions (711 & 755) and path to perl. What am I missing? Cheers for any bright ideas.
