You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess my big picture question is.. am I doing this right? Should users be looking up enum values in the curl header?
My expectation was that these symbols were mapped somewhere to Clojure static vars. I can see there are a ton of them so maybe it was too annoying to copy them all
This is maybe a naiive question, but how is the library expecting me to call symbols?
For instance I want to turn on SSL
As per the libcurl docs: https://curl.se/libcurl/c/CURLOPT_USE_SSL.html
(curl-easy/setopt curl curl-opts/use-ssl /*CURLUSESSL_TRY*/)
But I'm not quite sure how I'm expected to fill in that last value :)
What I ended up doing is going into
curl.h
find the enum it's listed underhttps://github.com/curl/curl/blob/master/include/curl/curl.h#L875
So looks like it should be a
1
..The first time I ran it I got a
CURLE_BAD_FUNCTION_ARGUMENT
- but seems like it's working nowI see in
opts
you are also using the numerical values directly. Here it readshttps://github.com/lsevero/clj-curl/blob/master/src/clj_curl/opts.clj#L580
But I'm not sure where the 119 comes from though
I guess my big picture question is.. am I doing this right? Should users be looking up
enum
values in the curl header?My expectation was that these symbols were mapped somewhere to Clojure static vars. I can see there are a ton of them so maybe it was too annoying to copy them all
https://curl.se/libcurl/c/symbols-in-versions.html
In any case, thank you for the easy to use library :) I really appreciate it
The text was updated successfully, but these errors were encountered: