[fpc-pascal] CGI application

Michael Van Canneyt michael at freepascal.org
Wed May 19 14:53:28 CEST 2010



On Wed, 19 May 2010, Vannus wrote:

> This may not be the right place to ask, but I'm really stumped and would
> much prefer FPC over PHP.
>
> Can someone point me to how I can make a CGI app that outputs the fields in
> the query?
>
> ie.
> my.cgi?q=hello
>
> and my.cgi then outputs whatever q is?
>
>
> I'm using Lazarus but the deprecated CGI doesn't have any obvious way of
> getting the URL So I tried weblaz but got nowhere with it -
> TCustomCGIApplication's AResponse.Fields don't get filled with the query and
> AResponse.URL doesn't contain the URL for me to parse myself :(

You need to look at "request", not at "response".

Michael.



More information about the fpc-pascal mailing list