Jump to content
salvi.a

How to Send HTTP data in Delphi

Recommended Posts

Regards,

I'm new into Delphi and not know much.

 

I'm trying to send data to ESP32 WebServer. My project is simply controlling LEDs by using ESP. So I want to send data like "LED No, R, G, B" or even simply "LED No" to understand how it works. I have found a color picker on the internet.

 

Using ESP on Station Point. So IP address is certain and won't be changed. What should I take a look at? 

Share this post


Link to post

Delphi ships with Indy pre-installed, which has a TIdHTTP component.  Modern versions of Delphi also have native THTTPClient/TNetHTTPClient components, too.

 

But either way, you can't just send arbitrary data to the ESP without understanding what it is actually expecting.  Do you have any documentation on what exactly it actually wants clients to send it?  What do the required URLs look like?  What input parameters are they expecting?  Are they query-string parameters, or post-body parameters?  Etc

Edited by Remy Lebeau

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×