-9
Why isn't libcurl doing anything?
(lemm.ee)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
Unless I'm mistaken, that first example as-written will ~~fetch~~ POST the network resource and then immediately clean up. The fact that CURLOPT_NOPROGRESS is passed means that the typical progress bar for
curl
in an interactive shell will be suppressed. The comment in the code even says that to make the example do something useful, you'll have to pass callback pointers, possibly by way of CURLOPT_WRITEFUNCTION or CURLOPT_WRITEDATA.From the
curl_easy_perform()
man page:Ah, right.
Finished it, i think. Still does "nothing"
edit: probably shouldn't include my api key with it.
What exactly are you expecting to happen? Have you written code before?
I have written code before. I just started with C recently. I am expecting it to do literally anything at this point, but for some reason whenever I use the libcurl library literally nothing happens that i can observe.