CGI without Perl?

 
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI
View previous topic :: View next topic  
Author Message
Duneagent
-


Joined: 28 Mar 2004
Posts: 4

PostPosted: Sun Mar 28, 2004 11:33 pm    Post subject: CGI without Perl? Reply with quote

Hi,

Is it posible to use CGI without Perl?

Thanks,
DuneAgent
Back to top View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Sun Mar 28, 2004 11:34 pm    Post subject: Reply with quote

CGI includes ASP, Perl, and PHP (when it comes to Abyss). So if you just use PHP, then you technically have CGI without Perl.
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Duneagent
-


Joined: 28 Mar 2004
Posts: 4

PostPosted: Mon Mar 29, 2004 8:43 pm    Post subject: Reply with quote

Isn't cgi just an executable that uses standard output?

Like printf("Hello world\n") in C.

Or is that not possible with Abyss?
Back to top View user's profile Send private message
Duneagent
-


Joined: 28 Mar 2004
Posts: 4

PostPosted: Mon Mar 29, 2004 9:08 pm    Post subject: Reply with quote

Found it :idea:

cgi output needs status replies first to work, will probably use http://www.boutell.com/cgic/ library.

Thanks for the reply :wink:
Back to top View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Mon Mar 29, 2004 10:59 pm    Post subject: Reply with quote

CGI is basically dynamic script (as oppose to static text, like HTML).
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Duneagent
-


Joined: 28 Mar 2004
Posts: 4

PostPosted: Mon Mar 29, 2004 11:30 pm    Post subject: Reply with quote

CGI is basically output from a program, it therefore is not script, but generated html output that the server would send back to the browser.

Like sending only "<html>Hello</html>" would not work, becouse the browser first wants to know if the "get /..." statement it send was succesfully received.

Therfore sending "Status: 200 OK\n\n<html>Hello</html>" will work, becouse the CGI-program is first telling status 200, that means ok. And then sending the html code the browser requested.

I just forgot to send the status :oops: , so now all is working ok :D

Thanks again.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Mar 30, 2004 2:12 pm    Post subject: Re: CGI without Perl? Reply with quote

CGI is not Perl (there is a big confusion between CGI and Perl because Perl was for more than 5 years the only CGI capable scripting language).
CGI is a protocol that describes how an executable and web server can dialog to generate dynamic content. For technical details, please refer to http://hoohoo.ncsa.uiuc.edu/cgi .
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Wed Mar 31, 2004 1:14 am    Post subject: Reply with quote

Yeah, that's what I thought it was (or something like that).

Thank you for the clarification.
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group