Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Perform POST request with Lazarus

Tags:

http

lazarus

How can I perform a POST request with Lazarus?

I found that it is possible to do using Indy for Lazarus, but the installation of Indy itself is a bit of a hassle, having to recompile and all. Is there another way?

like image 444
Shade Avatar asked Nov 14 '22 14:11

Shade


1 Answers

Of course you can use other library like Synapse. There is httpsend unit with functions like HttpPostURL(), it also supports SSL/TLS. I used this library with both Delphi and FPC.

If you do not need to use SSL/TLS, proxy or other more complicated things then it is not very complicated to create your own HTTP simple client based on socket and many HTTP tutorials.

like image 80
Michał Niklas Avatar answered Dec 15 '22 14:12

Michał Niklas