Re: [fpc-pascal] Prorammatically sending file using HTTP POST?

2018-04-04 Thread Anthony Walter
HTTP is quite simple actually. You just build a post message (a string), and send it over a socket. I've implemented HTTP client functions in many computer languages. Here are the key take aways if you want to implement it yourself. Build this string filling out the blanks using your own values P

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-04-04 Thread stdreamer
On 04/04/2018 14:22 μμ, Michael Van Canneyt wrote: Hm. Clearly, that means not important at all for me: I cannot recall ever having looked at the CE logo. In fact, until 30 seconds ago, I did not even know what it stands for. Well it is, you are just not aware of it. It presents it self in the

Re: [fpc-pascal] Prorammatically sending file using HTTP POST?

2018-04-04 Thread Anthony Walter
Just a follow up, if care you get a response back from your POST, as in the server says okay, you just use the same socket to read. Also, you might need to call connect after you set the host: var Message: string; Response: string; ... // port 80 normally used for http Socket.Connect('example.

Re: [fpc-pascal] Prorammatically sending file using HTTP POST?

2018-04-04 Thread Bo Berglund
On Wed, 4 Apr 2018 17:09:49 +0200 (CEST), Michael Van Canneyt wrote: >I don't know what a 'good example' is for you, but the code in > >https://stackoverflow.com/questions/27257577/indy-mime-decoding-of-multipart-form-data-requests-returns-trailing-cr-lf > >Is quite understandable. I found this

Re: [fpc-pascal] Prorammatically sending file using HTTP POST?

2018-04-04 Thread Michael Van Canneyt
On Wed, 4 Apr 2018, Bo Berglund wrote: On Wed, 4 Apr 2018 15:29:36 +0200, Luca Olivetti wrote: By the way, I am using the Indy10 components via the indylaz package. Lazarus is 1.8.0 and FPC 3.0.4 on Windows7. I never used indy, but you can either use TFPHTTPClient (unit fphttpclient) or

Re: [fpc-pascal] Prorammatically sending file using HTTP POST?

2018-04-04 Thread Bo Berglund
On Wed, 4 Apr 2018 15:29:36 +0200, Luca Olivetti wrote: >> By the way, I am using the Indy10 components via the indylaz package. >> Lazarus is 1.8.0 and FPC 3.0.4 on Windows7. > >I never used indy, but you can either use TFPHTTPClient (unit >fphttpclient) or synapse THHPSend. >Both allow to send

Re: [fpc-pascal] Prorammatically sending file using HTTP POST?

2018-04-04 Thread Luca Olivetti
El 04/04/18 a les 13:50, Bo Berglund ha escrit: Does someone have a suggestion on how to do this? By the way, I am using the Indy10 components via the indylaz package. Lazarus is 1.8.0 and FPC 3.0.4 on Windows7. I never used indy, but you can either use TFPHTTPClient (unit fphttpclient) or

[fpc-pascal] Prorammatically sending file using HTTP POST?

2018-04-04 Thread Bo Berglund
I have written a Lazarus/FPC program to configure an IoT device via a tcp server I have implemented on the device. It all works well for setting the parameters etc. Now I want to also add a firmware update function to this configurator program, but I could use some advice regarding the way to send

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-04-04 Thread Michael Van Canneyt
On Wed, 4 Apr 2018, stdreamer wrote: On 04/04/2018 12:58 μμ, Michael Van Canneyt wrote: And this kind of statement is why I don't take branding or marketing seriously. On one hand "..then branding is quite important" and on the other hand "don't take it too literally". That simply does not

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-04-04 Thread stdreamer
On 04/04/2018 12:58 μμ, Michael Van Canneyt wrote: And this kind of statement is why I don't take branding or marketing seriously. On one hand "..then branding is quite important" and on the other hand "don't take it too literally". That simply does not compute for me. let me try to make it

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-04-04 Thread Michael Van Canneyt
On Wed, 4 Apr 2018, Mr Bee via fpc-pascal wrote: 2018-04-03 14:21 GMT+07:00 Michael Van Canneyt : I meant the icon it uses for the IDE. Do you mean this: http://wiki.lazarus.freepascal.org/File:Lazarus-icons-lpr-proposal-bpsoftware.png ? Yes. For me, this is the direction to go in. A

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-04-04 Thread Mr Bee via fpc-pascal
2018-04-03 14:21 GMT+07:00 Michael Van Canneyt : > > I meant the icon it uses for the IDE. Do you mean this: http://wiki.lazarus.freepascal.org/File:Lazarus-icons-lpr-proposal-bpsoftware.png ? > A lot thinner :) > Let's see what I can do. > And here I will stop: as said, branding is not a s