I am new to C++ development and I have been trying to work with libcurl.
I basically am looking for a function that lets me enter in parameters similar to the -d flag in curl.
for example if I were to just send a url request in curl directly or the web browser the url would look like 'https://www.example.com/hello.json?whoisawesome=me&whosucks=yomomma'
then how could i feed it to libcurl not as just one url as suggested in the accepted answer of this question: Add paramethers to libcurl GET in c++
but as parameters I could add? I am hoping the call would automatically 'clean up' the text (e.g., to support ampersands(&) and equal signs (=) in the string. I'm sure there's other cases but that's the only one i can think of for now). Of course I could make a function that cleans up the string myself but I'd like to know if there's one built into libcurl.
I checked the api doc but I guuss I was not familiar enough to successfully navigate it to find what I needed.
Thanks for your time
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With