• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

perl script doing nowt

xoggoth

More fingers than teeth
Thanks received
1,183
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.
 
Last edited: 23:12

Advertisers

Back
Top