× CodeTyphon Cross-Build Development, discussions and problems

Question Web server on raspberry

  • superc
  • superc's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 5 months ago #11760 by superc
Web server on raspberry was created by superc
Hello,
I'm trying to create a web server in lazarus project: in windows no problem, but in raspberry ( raspbian) no.
Are there components compatible for raspberry can able to create a webserver?
Thanks in advance,

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
3 years 5 months ago - 3 years 5 months ago #11761 by Sternas Stefanos
Replied by Sternas Stefanos on topic Web server on raspberry
Sir
I think pl_indy or pl_LNet will work on Pi3

PilotLogic Architect and Core Programmer
Last edit: 3 years 5 months ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • superc
  • superc's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 5 months ago #11762 by superc
Replied by superc on topic Web server on raspberry
thanks, now pl_indy works fine on raspberry?
That good news

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
3 years 5 months ago #11765 by Sternas Stefanos
Replied by Sternas Stefanos on topic Web server on raspberry
Do you want to make CrossBuild or
you will run CodeTyphon On Pi3 ?

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • superc
  • superc's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 5 months ago #11768 by superc
Replied by superc on topic Web server on raspberry
yes, tomorrow I'll do a little test and I'll tell you the result

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
3 years 5 months ago #11769 by Sternas Stefanos
Replied by Sternas Stefanos on topic Web server on raspberry
Thanks

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • superc
  • superc's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 5 months ago #11771 by superc
Replied by superc on topic Web server on raspberry
Ok, tidHTTPServer with this little code works:
procedure TForm1.IdHTTPServer1CommandGet(AContext: TIdContext;
  ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo);
begin
  AResponseInfo.ContentText := '<html><head><title>Test Response</title></head>' +
    '<body>Command: ' + ARequestInfo.Command +
    '<br />Host: ' + ARequestInfo.Host +
    '<br />URI: ' + ARequestInfo.URI +
    '<br />UserAgent: ' + ARequestInfo.UserAgent +
    ' HELLOOOOOOO '+
    '</body></html>';
end;

on raspberry pi3b+ I bind address 0.0.0.0:8080 otherwise I receive error 'port already in use' but don't have other web server; we must investigate.
In my lan application response correctly on 8080 ....

Soon I test nlnet http server.....

Please Log in or Create an account to join the conversation.