I don't know wherever it's a curl/libcurl compile-time setting or hard dependency on libwolfssl (even tho libopenssl is installed), the end result is that HTTP/2 is not supported on OpenWrt.
I've had a look at the Makefile but it's too complicated for me to understand/try to fix.
I'm not sure if @Kaloz is still active on the forum/as a package maintainer, but I figured I'd ask here for pointers first before emailing Imre.
How can I get a version of curl/libcurl which would support HTTP/2?
I think you should compile libcurl with HTTP2 support. To do so:
main menuconfig ---> Libraries --> Libcurl (choose the package) ---> choose "HTTP2 protocol". Build openwrt.
Thanks! But that would bring (or it should then bring, as curl won't work without) the libnghttp which is a 67Kb library compared to 168Kb for libcurl itself.
Do you have an idea how to create a variant (libcurl-http2 for the new library or libcurl-http1 for the old one) so that there's an option of using curl without HTTP/2 on space-constrained devices?
Thanks again, I've created PR for the Config.in change (https://github.com/openwrt/packages/pull/16255), that would hopefully get the ball rolling in the correct direction, even if that'd require a variant.
nah they are bickering about project politics and stuff, let's see if I can steer that back to something more productive
EDIT: sorry for siding with the people that want you to do more work lol. Imho dangowrt's argument on "making a variant is too hard" is invalid because he is assuming the two variants should be compatible with each other, and this is not a requirement here (as one lib is actually a superset of the other, you can just replace the smaller one with the bigger one and still have 100% the same functionality of the smaller one)