Welcome, Guest
Username: Password: Remember me
CodeTyphon Cross-Build Development, discussions and problems
  • Page:
  • 1

TOPIC:

Web server on raspberry 6 years 5 months ago #11760

  • superc
  • superc's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 75
  • Thank you received: 0
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.

Web server on raspberry 6 years 5 months ago #11761

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Sir
I think pl_indy or pl_LNet will work on Pi3
PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

Web server on raspberry 6 years 5 months ago #11762

  • superc
  • superc's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 75
  • Thank you received: 0
thanks, now pl_indy works fine on raspberry?
That good news

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

Web server on raspberry 6 years 5 months ago #11765

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
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.

Web server on raspberry 6 years 5 months ago #11768

  • superc
  • superc's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 75
  • Thank you received: 0
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.

Web server on raspberry 6 years 5 months ago #11769

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Thanks
PilotLogic Architect and Core Programmer

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

Web server on raspberry 6 years 5 months ago #11771

  • superc
  • superc's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 75
  • Thank you received: 0
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.

  • Page:
  • 1