Posting text to web API

Hello all,

I am trying to Post text in JSON format to a web api but I have no clue on how to do this. If anyone could help lead me in the right path that would be much appreciated.

Thank you in advance
The API should provide documentation, as there's no standard for a Web API. However, if the API wants a POST with JSON text, then that's another matter.

Just do a search on "HTTP POST".
https://en.wikipedia.org/wiki/POST_(HTTP)#Use_for_submitting_web_forms
https://stackoverflow.com/questions/14551194/how-are-parameters-sent-in-an-http-post-request
...
Yes it does want a POST with JSON text that I have already formatted from several files. I just need a way to get that formatted text to the API
See the comment in this example. You won't have the library, but the comment is clear.

I'm trying to avoid writing code for you. Please ask questions about specific parts you don't understand or think you're missing.

https://www.example-code.com/cpp/http_post_json.asp
Last edited on
Topic archived. No new replies allowed.