Sign in Join

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

Mailing lists / fpc-pascal / 2011-10

CGI under Freepascal

4 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Luciano de Souza

Hello listers,

I am trying to use CGI with Pascal. I don't have background in web development, but principles of CGI seems to be simple.

The first way could be FPWeb. However, I prefer another solution even if it is the best bet. It requires complex compilations and configurations since it's not available in a deb package. So I want an alternative working with FPC 2.4.4.

The second attempt was custcgi. Except for the source code and an single example sent to a friend, no more documentation I found. I tried also Ezcgi, but the lack of documentation and examples are big obstacles.

What I want to create something simple with a minimum support of CGI facilities, but without onus of instalations, compilations and configurations.

I don't matter if the solution is modern or old, if only a set of some few resources are available, if the method is not appropriate to a large quantity o of simultaneous users, for me, it's important the solution only works.

With a tStringList.loadfromfile, I can load a HTML file and show it iterating on list elements. If this is not my option is because the difficulty to process variables received from a form. So a minimum of specialized routines should be available.

The variety of projects under Freepascal is so big that I will be not surprised with other solutions for my problem. What do you suggest for me?

Regards,

Luciano

Michael Van Canneyt
to Luciano de Souza: I am trying to use CGI with Pascal. I don't have background in web development, but…
Luciano de Souza wrote 5 lines
Hello listers, I am trying to use CGI with Pascal. I don't have background in web development, but principles of CGI seems to be simple.

[snip]

The variety of projects under Freepascal is so big that I will be not surprised with other solutions for my problem. What do you suggest for me?

You can always search for powtils, but as far as I know it is unmaintained. (and also not well-documented IMHO)

Michael.

Graeme Geldenhuys
to Michael Van Canneyt
Michael Van Canneyt wrote
You can always search for powtils, but as far as I know it is unmaintained.

I use powtils (aka pwu), and it works very well. We have 3 CGI apps developed with powtils, connecting to a database backend etc. It is easy to use and relatively easy to deploy your CGI apps.

Here is the last stable version I found - and the one we use. The latest code from the powtils repository simply did not compile for me.

http://opensoft.homeip.net:8080/~graemeg/pwu-1.6.0.2.tar.gz

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/