I need to call an API with POST arguments, for example:
- URL = http://localhost/myAPI/
- ARGS = options=blue&type=car
I’ve had a look at XDocument but not sure how to send params in the request. I’m also not sure how I would call asynchronously, and even if I should or if it’s better/easier to run in another thread.
I’d be calling this from my windows based C# application.
You can use one of the Upload methods of WebClient.