Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

cgi error (need help)
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



Report this thread to moderator Post Follow-up to this message
Old Post
Bernard
03-19-04 06:26 PM


Re: cgi error (need help)
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 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.


Report this thread to moderator Post Follow-up to this message
Old Post
Malcolm Dew-Jones
03-19-04 06:26 PM


Re: cgi error (need help)
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
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Al
03-19-04 06:26 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL CGI Freelance archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 11:15 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.