charonn0 / RB-libcURL

A Realbasic and Xojo binding to libcurl
http://www.boredomsoft.org/rb-libcurl.bs
MIT License
22 stars 11 forks source link

ResponseHeaderEngine raises a FunctionNotFoundException on older versions of libcurl if the request didn't generate any headers #37

Closed charonn0 closed 2 years ago

charonn0 commented 2 years ago

The curl_easy_nextheader function is very new, so if you're not using the bleeding edge latest release of libcurl then it won't be available. The ResponseHeaderEngine knows this, and falls back on the old behavior if the new API isn't available. However, if the request fails without generating any headers then the ResponseHeaderEngine will be fooled into thinking the new API is available. When the API is actually called upon a FunctionNotFoundException is raised.