View previous topic :: View next topic |
Author |
Message |
Duneagent -
Joined: 28 Mar 2004 Posts: 4
|
Posted: Sun Mar 28, 2004 11:33 pm Post subject: CGI without Perl? |
|
|
Hi,
Is it posible to use CGI without Perl?
Thanks,
DuneAgent |
|
Back to top |
|
|
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Sun Mar 28, 2004 11:34 pm Post subject: |
|
|
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 |
|
|
Duneagent -
Joined: 28 Mar 2004 Posts: 4
|
Posted: Mon Mar 29, 2004 8:43 pm Post subject: |
|
|
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 |
|
|
Duneagent -
Joined: 28 Mar 2004 Posts: 4
|
Posted: Mon Mar 29, 2004 9:08 pm Post subject: |
|
|
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 |
|
|
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Mon Mar 29, 2004 10:59 pm Post subject: |
|
|
CGI is basically dynamic script (as oppose to static text, like HTML). _________________ Bienvenidos! |
|
Back to top |
|
|
Duneagent -
Joined: 28 Mar 2004 Posts: 4
|
Posted: Mon Mar 29, 2004 11:30 pm Post subject: |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Mar 30, 2004 2:12 pm Post subject: Re: CGI without Perl? |
|
|
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 |
|
|
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Wed Mar 31, 2004 1:14 am Post subject: |
|
|
Yeah, that's what I thought it was (or something like that).
Thank you for the clarification. _________________ Bienvenidos! |
|
Back to top |
|
|
|