echo.lpr 986 B

12345678910111213141516171819202122232425262728293031323334
  1. {
  2. This file is part of the Free Component Library (FCL)
  3. Copyright (c) 2017-2018 by the Free Pascal development team
  4. Windows HTTP Server API based TCustomWebApplication
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. program echo;
  12. uses
  13. fpHTTPSys, wmecho;
  14. {
  15. Before using this example you need to add the URL to the system using a
  16. comand like the following (executed with Administrator priviledges):
  17. netsh http add urlacl url=http://+:80/fpweb user=DOMAIN\User
  18. Whereby DOMAIN\User is the user or group you want to execute this example in.
  19. }
  20. begin
  21. Application.Initialize;
  22. Application.Urls.Add('http://+:80/fpweb');
  23. Application.Run;
  24. end.