Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2003-06

CGI Programming

8 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

James Mills

Hi all,

Now that uni is almost over (only exams left), I wish to write a web application for my 5 member group of software engineers (students).

Is it wise to write such as application (cgi app in pascal) ? It needs to be secure and allow only members of the group to login and view the pages within, submit data etc...

I've looked around for cgi related stuff for fpc, ezcgi, Uncgi (from: ftp://ftp.freepascal.org/pub/fpc/source/packages.zip) which doesn't appear to exist.

I have seen Section 11 of the Users Manual of FPC as well which explains how the two methods of feeding the data to the cgi app.

Anyone have any ideas of the best approach to this ? I could write my own class, but ezcgi probably already accomplishes most things anyway.

cheers
James

Peter Vreman
to James Mills
I've looked around for cgi related stuff for fpc, ezcgi, Uncgi (from: ftp://ftp.freepascal.org/pub/fpc/source/packages.zip) which doesn't appear to exist.

This has been moved to the snapshots dirs per development branch:

For 1.0.x (stable): ftp://ftp.freepascal.org/pub/fpc/snapshot/v10/source

For 1.1 (development): ftp://ftp.freepascal.org/pub/fpc/snapshot/v11/source

Peter

Michael Van Canneyt
to James Mills: Now that uni is almost over (only exams left), I wish to write a web application for my 5…
James Mills wrote 18 lines
Hi all, Now that uni is almost over (only exams left), I wish to write a web application for my 5 member group of software engineers (students). Is it wise to write such as application (cgi app in pascal) ? It needs to be secure and allow only members of the group to login and view the pages within, submit data etc... I've looked around for cgi related stuff for fpc, ezcgi, Uncgi (from: ftp://ftp.freepascal.org/pub/fpc/source/packages.zip) which doesn't appear to exist. I have seen Section 11 of the Users Manual of FPC as well which explains how the two methods of feeding the data to the cgi app. Anyone have any ideas of the best approach to this ? I could write my own class, but ezcgi probably already accomplishes most things anyway.

ezcgi is outdated. The new release 1.0.8 contains the 'cgiapp' unit which has all that ezcgi had, but is embedded more in the FCL.

I suggest you download the latest FCL sources, or get the new release.

Michael.

Unknown author
Show quoted text 6 lines
ezcgi is outdated. The new release 1.0.8 contains the 'cgiapp' unit which has all that ezcgi had, but is embedded more in the FCL. I suggest you download the latest FCL sources, or get the new release.

Is there a binding for FastCGI ? It is a good alternative to plain CGI.

cheers,
-Krish

James Mills
to Unknown author
Show quoted text 5 lines
> > ezcgi is outdated. The new release 1.0.8 contains the 'cgiapp' unit > which has all that ezcgi had, but is embedded more in the FCL.

ezcgi is outdated ? It suits me just fine :)

How is cgiapp better than ezcgi (just because it's more embedded into the FCL?)

cheers
James

Show quoted text 12 lines
> > I suggest you download the latest FCL sources, or get the new release. > Is there a binding for FastCGI ? It is a good alternative to plain CGI. cheers, -Krish _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Michael Van Canneyt
to James Mills
James Mills wrote 11 lines
On Mon, Jun 09, 2003 at 06:10:25AM -0600, wrote: > > > > > > ezcgi is outdated. The new release 1.0.8 contains the 'cgiapp' unit > > which has all that ezcgi had, but is embedded more in the FCL. ezcgi is outdated ? It suits me just fine :) How is cgiapp better than ezcgi (just because it's more embedded into the FCL?)

ezcgi uses some dirty tricks to get at the needed variables under windows. cgiapp is entirely cross-platform. But it was based heavily on ezcgi.

I don't want to say that ezcgi was bad, cgiapp fits more in a general approach to applications we want to introduce in the FCL, and which was not present when ezcgi was first developed.

Michael.

Michael Van Canneyt
to Unknown author: Is there a binding for FastCGI ? It is a good alternative to plain CGI. -Krish
Show quoted text 9 lines
> > ezcgi is outdated. The new release 1.0.8 contains the 'cgiapp' unit > which has all that ezcgi had, but is embedded more in the FCL. > > I suggest you download the latest FCL sources, or get the new release. > Is there a binding for FastCGI ? It is a good alternative to plain CGI.

Not yet. I didn't have time for that yet.
Feel free to make a descendent or make enhancements to the current CGIapp.

Michael.

James Mills
to Michael Van Canneyt: ezcgi uses some dirty tricks to get at the needed variables under windows. cgiapp is…
Michael Van Canneyt wrote 22 lines
On Mon, 9 Jun 2003, James Mills wrote: > On Mon, Jun 09, 2003 at 06:10:25AM -0600, wrote: > > > > > > > > > > ezcgi is outdated. The new release 1.0.8 contains the 'cgiapp' unit > > > which has all that ezcgi had, but is embedded more in the FCL. > > ezcgi is outdated ? It suits me just fine :) > > How is cgiapp better than ezcgi (just because it's more embedded into > the FCL?) ezcgi uses some dirty tricks to get at the needed variables under windows. cgiapp is entirely cross-platform. But it was based heavily on ezcgi. I don't want to say that ezcgi was bad, cgiapp fits more in a general approach to applications we want to introduce in the FCL, and which was not present when ezcgi was first developed.

Well it suits me just fine since I don't really care about developing a cgi app for windows :P I mean come on, who in their right mind would run an MS http server with all the exploits known to it ? (Even my bloody apache server gets attacked with MS explits, the fools).

cheers
James

Show quoted text 8 lines
Michael. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
- - James Mills Zero Defect Software Engineers Group - ZDSEG