Web Application Not Running lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- heejit · 2018-02-26 14:20 used : weblaz/HTTP Server Application project type Error Message : Missing HTTP protocol version in request when open the http://localhost:9250 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  program httpproject1; {$mode objfpc}{$H+} uses  cthreads, fphttpapp, Unit1; begin  Application.Title:='httpproject1';  Application.Port:=9250;  Application.Threaded:=True;  Application.Initialize;  Application.Run;end.     unit Unit1; {$mode objfpc}{$H+} interface uses    SysUtils, Classes, httpdefs, fpHTTP, fpWeb, fpwebdata; type    { TFPWebModule1 }    TFPWebModule1 = class(TFPWebModule)        procedure DataModuleCreate(Sender : TObject);        procedure DataModuleRequest(Sender : TObject; ARequest : TRequest;            AResponse : TResponse; Var Handled : Boolean);    private     public     end; var    FPWebModule1 : TFPWebModule1; implementation {$R *.lfm} { TFPWebModule1 } procedure TFPWebModule1.DataModuleCreate(Sender : TObject);begin end; procedure TFPWebModule1.DataModuleRequest(Sender : TObject;    ARequest : TRequest; AResponse : TResponse; Var Handled : Boolean);begin    AResponse.ContentType := 'text/html;charset=utf-8';    AResponse.Content     := 'Hello, World!';    Handled := true ;end; initialization    RegisterHTTPModule('TFPWebModule1', TFPWebModule1);end. ---------------------------------------------------------------------- nummer8 · 2018-02-26 14:21 Application.Legacyrouting := True; ---------------------------------------------------------------------- heejit · 2018-02-26 14:33 Now Error : EResnotfound Error Message: Resource TCustomHTTPModule not found ---------------------------------------------------------------------- heejit · 2018-02-26 14:51 click on continue / break in error message dialog it showing hello world  in browser ---------------------------------------------------------------------- Leledumbo · 2018-02-26 18:35 Quote from: jshah on February 26, 2018, 03:51:20 pmclick on continue / break in error message dialog it showing hello world  in browser Yes, there are intentional exception inside the framework code that GDB will catch despite it's has actually been handled internally. I suggest ignoring this one (and some several others, basically anything that doesn't come from your own code). ---------------------------------------------------------------------- heejit · 2018-02-26 22:17 Ok Thanks