- Posts: 75
- Thank you received: 0
×
CodeTyphon Cross-Build Development, discussions and problems
Question Web server on raspberry
- superc
-
Topic Author
- Offline
- Junior Member
-
Less
More
4 years 1 month 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,
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
-
- Away
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
4 years 1 month ago - 4 years 1 month ago #11761
by Sternas Stefanos
PilotLogic Architect and Core Programmer
Replied by Sternas Stefanos on topic Web server on raspberry
Sir
I think pl_indy or pl_LNet will work on Pi3
I think pl_indy or pl_LNet will work on Pi3
PilotLogic Architect and Core Programmer
Last edit: 4 years 1 month ago by Sternas Stefanos.
Please Log in or Create an account to join the conversation.
- superc
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 75
- Thank you received: 0
4 years 1 month ago #11762
by superc
Replied by superc on topic Web server on raspberry
thanks, now pl_indy works fine on raspberry?
That good news
That good news
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
- Away
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
4 years 1 month ago #11765
by Sternas Stefanos
PilotLogic Architect and Core Programmer
Replied by Sternas Stefanos on topic Web server on raspberry
Do you want to make CrossBuild or
you will run CodeTyphon On Pi3 ?
you will run CodeTyphon On Pi3 ?
PilotLogic Architect and Core Programmer
Please Log in or Create an account to join the conversation.
- superc
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 75
- Thank you received: 0
4 years 1 month 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
-
- Away
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
4 years 1 month ago #11769
by Sternas Stefanos
PilotLogic Architect and Core Programmer
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
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 75
- Thank you received: 0
4 years 1 month ago #11771
by superc
Replied by superc on topic Web server on raspberry
Ok, tidHTTPServer with this little code works:
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.....
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.