Re: [fpc-pascal] TFPHttpClient & TFPHttpServer

2023-01-03 Thread Michael Van Canneyt via fpc-pascal
On Wed, 4 Jan 2023, Mattias Gaertner via fpc-pascal wrote: On Tue, 3 Jan 2023 23:58:42 +0100 (CET) Michael Van Canneyt via fpc-pascal wrote: [...] Q4: TFPHTTPServer has property Address. I reckon it will be set to 'localhost' here. Is it correct? It depends on what you want. Best is to

Re: [fpc-pascal] TFPHttpClient & TFPHttpServer

2023-01-03 Thread Mattias Gaertner via fpc-pascal
On Tue, 3 Jan 2023 23:58:42 +0100 (CET) Michael Van Canneyt via fpc-pascal wrote: >[...] > > Q4: TFPHTTPServer has property Address. I reckon it will be set to > > 'localhost' here. Is it correct? > > It depends on what you want. Best is to leave it empty. That will use 0.0.0.0, which is ever

Re: [fpc-pascal] TFPHttpClient & TFPHttpServer

2023-01-03 Thread duilio foschi via fpc-pascal
Now everything is clear. Thank you Peppe Il Mar 3 Gen 2023 22:59 Michael Van Canneyt via fpc-pascal < fpc-pascal@lists.freepascal.org> ha scritto: > > > On Tue, 3 Jan 2023, duilio foschi via fpc-pascal wrote: > > > I would like to write some code where a TFPHttpClient component sends > > a mini

Re: [fpc-pascal] TFPHttpClient & TFPHttpServer

2023-01-03 Thread Michael Van Canneyt via fpc-pascal
On Tue, 3 Jan 2023, duilio foschi via fpc-pascal wrote: I would like to write some code where a TFPHttpClient component sends a minimal json payload to a TFPHttpServer that (reads the payload). The working of the TFPHttpClient component is clear enough, while its counterpart TFPHttpServer pr

[fpc-pascal] TFPHttpClient & TFPHttpServer

2023-01-03 Thread duilio foschi via fpc-pascal
I would like to write some code where a TFPHttpClient component sends a minimal json payload to a TFPHttpServer that (reads the payload). The working of the TFPHttpClient component is clear enough, while its counterpart TFPHttpServer proves rather obscure to me. TFPHttpClient === Page ht