Code Comments
Programming Forum and web based access to our favorite programming groups.Hi, I have a problem with a CGI script on a Win2000 server. The script is for sending E-cards and was written by Jason Maloney: http://www.aestheticsurgerycenter.c...postcard1.shtml You can choose from some cards, add your own text and send it to a friend. This friend get a mail which tell him/her that he/she has a mail and have to click a link. So far everything works just fine. But when the recipient clicks the link he/she gets the following error message in the browser window: ---------------------------------------------------- CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: Can't open perl script "D:\Inetpub\HCO\www\cgi-bin\postcard\card.cgi1070022045": No such file or directory -------------------------------------------------------- The cgi script is in \cgi-bin\postcard\card.cgi But the data it has to retrieve is in \cgi-bin\postcard\cards\1070022045.dat(for example) Each mail generates a new .dat file. Any ideas??? You can try it on our test site: http://195.86.135.223/cgi-bin/postcard/index.html Thanks, Bernard
Post Follow-up to this messageBernard (webmaster@archiefnet.nl) wrote: : Hi, : I have a problem with a CGI script on a Win2000 server. : The script is for sending E-cards and was written by Jason Maloney: : http://www.aestheticsurgerycenter.c...postcard1.shtml : You can choose from some cards, add your own text and send it to a friend. : This friend get a mail which tell him/her that he/she has a mail and have to : click a link. : So far everything works just fine. : But when the recipient clicks the link he/she gets the following error : message in the browser window: : ---------------------------------------------------- : CGI Error : The specified CGI application misbehaved by not returning a complete set o f : HTTP headers. The headers it did return are: Can't open perl script : "D:\Inetpub\HCO\www\cgi-bin\postcard\card.cgi1070022045": No such file or : directory The server has politely told you exactly the problem, the link to to the above file, which doesn't exist. I suspect the link is formatted incorrectly by the program that creates the mail. I hope you have some kind of anti-spam techniques in place. Scripts like the above (I haven't looked at it, only read this description) are commonly exploited by spammers to send messages. The spammer adds text such as "Please buy viagara from me" and then mails it to the spamee. After a while, the person who runs the web site finds that all their own mail is blocked for ever more by many other sites that received the spam.
Post Follow-up to this messageYea. Don't put the .dat in the cgi-bin. Many servers will not open it. Al web-site-builder.com "Bernard" <webmaster@archiefnet.nl> wrote in message news:3fc749fe$0$1494$e4fe514c@news.xs4all.nl... > Hi, > > I have a problem with a CGI script on a Win2000 server. > The script is for sending E-cards and was written by Jason Maloney: > http://www.aestheticsurgerycenter.c...postcard1.shtml > You can choose from some cards, add your own text and send it to a friend. > This friend get a mail which tell him/her that he/she has a mail and have to > click a link. > So far everything works just fine. > But when the recipient clicks the link he/she gets the following error > message in the browser window: > ---------------------------------------------------- > CGI Error > The specified CGI application misbehaved by not returning a complete set of > HTTP headers. The headers it did return are: Can't open perl script > "D:\Inetpub\HCO\www\cgi-bin\postcard\card.cgi1070022045": No such file or > directory > -------------------------------------------------------- > The cgi script is in \cgi-bin\postcard\card.cgi > But the data it has to retrieve is in > \cgi-bin\postcard\cards\1070022045.dat(for example) > Each mail generates a new .dat file. > > Any ideas??? > > You can try it on our test site: > http://195.86.135.223/cgi-bin/postcard/index.html > > Thanks, > Bernard > >
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.