I am facing a problem, which I try to solve . Unfortunately my knowledge in curl is limited. I am following an example of Particle of turning a led ON and OFF using the curl in command line.
I would like to implement this to a RESTrequest can someone advice me what would be the BaseURL to use for the post method?
I am using .Net to send this command with POST method using a button.
I only have one place to put the URL, it is not like HTML5 which I can seperate them . In my example I have to put the URL to a string and then post it.
Lets say you use a Visual Basic programming , how should you send the http post?
Because when I use the GET , to read an analogue value my URL is only one.
Yes, but that's a GET request, which can be handled as a singe string. A POST request needs to be treated differently, for good reasons. How to use that with visual basic can be found here, if anyone's still interested: Make HTTP requests with the HttpClient - .NET | Microsoft Learn