If you know the basic mechanisms of how a web app works, actually you don't need fpWeb to write a web app using Pascal. I've been making many web apps using Pascal since about 10 years ago, long before fpWeb existed. HTTP is a pretty old technology, you know. IMHO, it's not about the future of Pascal for web because it has been able to do that since the beginning. I remember my first Pascal web app was written using Turbo Pascal 7.0. Basically it's just about how to read from stdin and to write to stdout using HTTP communication protocol. It's long before PHP even existed.It's more about how we use Pascal to compete with currently over-hype web tools/frameworks/languages. Object Pascal is an advance language since its inception. It's just born too early so most people don't understand its capability.
Well said & every encouraging. Thanks to Leledumbo for his excellent work. I never understood how fpWeb worked beforehand but I'll now give it a try.
so I want to ask is it good doing web stuff with fpc?
what libraries do you used? did you tried Brook,didi you liked it?
What fields in web you think fpc is more usefull?
Beside this post what sources should I read for this subject?
Thanks @Leledumbo.Mostly I like to make some API for my programs to work with so avoid writing PHP for my API parts. I never saw a easy to learn demo for making an API system with authentication.
Because it's no different from normal HTTP request/response flow, just specially dictated (what you have to send, what you will receive) in some parsable text (json, xml, whatever). It's a matter of knowledge combining, although in PHP world it's often overrated by being something special and thus require special libraries as well.
But it good to have one example for beginners anyway.
Thanks Leledumbo!It's a good tutorial indeed!!But I've got a doubt:When building a module, is there a way to specify the for which Apache version (e.g. Apache 2.2 Apache 2.4) generate the module?
The unit names differ for both versions, look in your units folder.
An unhandled exception occurred at $00007FF8F0760C66: EHTTP: No REQUEST_METHOD passed from server. $00007FF8F0760C66