Home > Archive > PERL CGI Freelance > March 2004 > cgi error (need help)
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
cgi error (need help)
|
|
| Bernard 2004-03-19, 1:26 pm |
| 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
| |
| Malcolm Dew-Jones 2004-03-19, 1:26 pm |
| Bernard (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 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 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.
| |
|
| Yea. 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
>
>
|
|
|
|
|