[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-WebCGI] Document contained no data



You may have already received an answer, but here goes. You need to save the
script as a "CGI Script" (Do a save as and select CGI script.) What is
probably happening is that you saved it as a droplet, and the output was not
being sent to the server, and therefore to netscape.

Hope this helps,
--Quentin

----- Original Message -----
From: "Wolf Alexander Hauser" <woffl@gmx.net>
To: <macperl-webcgi@macperl.org>
Sent: Saturday, February 26, 2000 9:55 AM
Subject: [MacPerl-WebCGI] Document contained no data


> Hello,
>
> I have written an HTML-Page for our school's newspaper, and
> I think it's looking quite nice (www.nasobem.de). About one
> week ago I decided I want to have a guestbook, my own counter
> and maybe some more things I can only do by using CGI.
>
> Now I have to learn programming CGI scripts, and I want to do
> this in perl. I have bee searching for a Server software, and
> I found one, called "Quid Pro Quo 2.1.2". I also found the
> only perl interpreter available for Macintosh, called
> "MacPerl 5.2Or4". But the thing doesn't work.
> That's why I ask you to help me, although my English is not
> perfect (12th grade german school english...). There will be
> mistakes, but I expect you will understand my problem anyway.
>
> I wanted to run the following small perl programm ("demo.pl"):
> ---------------------------------------------
> #!/usr/bin/perl
>
> print "Content-type: text/html\n\n";
> print "Hello, Wold!";
> ---------------------------------------------
>
> It's running fine in MacPerl.
> (Script -> Run Script -> demo.pl)
>
> It's also running on my provider's server. I loaded it up
> into my cgi-bin-directory, and it runned well, Netscape 4.5
> shows "Hello, World!" in the browser window.
> (www.kollektivwissen.de/cgi-bin/demo.pl)
>
> But it doesn't run on my own desktop. Quid Pro Quo opens
> the MacPerl-software, but then, in spite of writing "Hello
> World", Netscape gives an error:
>
> "The document contained no data. Try again later, or contact
> the servers administrator."
>
> I am unable to solve the problem. Probably it is really simple,
> and I'm just behaving very stupid, but I have tried everything
> I could imagine to be responsible for the error. To be honest
> I have to say that this was not much, as I have no experience
> in things like cgis, servers and perl interpreters.
>
> But I want to learn it, and therefore I ask you to help me.
> Thank you very much,
>
> Wolf Hauser
>
> --
> "HINREISSEND!" -- Frau Hack 1993 über Herr Pribils Vollbart


==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org