bagder, to random
@bagder@mastodon.social avatar

#libcurl has proudly served as the HTTP(S) engine in #git for nineteen years now.

Seirdy,
@Seirdy@pleroma.envs.net avatar

@bagder what are some of your other favorite uses of libcurl?

bagder,
@bagder@mastodon.social avatar
bagder, to random
@bagder@mastodon.social avatar

In about thirty minutes I start the getting started with #libcurl #webinar

https://daniel.haxx.se/blog/2024/03/18/getting-started-with-libcurl/

djh,
@djh@chaos.social avatar

@bagder Just wanted to say thank you for the recording! 🙏

I just went back and watched it, and for someone like me who benefits immensely from the same material presented through different channels (documentation, quick starts, library headers, audio & video) it's a very good overview! ✨

djh,
@djh@chaos.social avatar

@bagder Awesome, so much to learn wrt. libcurl! 😍 Posting links below in case anyone is looking for them ✨

📺 Getting started with libcurl

https://youtube.com/watch?v=aS2eJDA5nSM

📺 Mastering libcurl

https://youtube.com/watch?v=ZQXv5v9xocU

https://youtube.com/watch?v=9KqnXsSxqGA

#curl #libcurl

bagder, to random
@bagder@mastodon.social avatar

It's just two years since we introduced the headers API to #libcurl

https://daniel.haxx.se/blog/2022/03/22/a-headers-api-for-libcurl/

bagder, to random
@bagder@mastodon.social avatar

The "getting started with #libcurl" webinar with me: next week.

https://daniel.haxx.se/blog/2024/03/18/getting-started-with-libcurl/

jawnsy,
@jawnsy@mastodon.social avatar

@bagder I'm also very interested in the techniques you used to make libcurl so easy to work with - good docs, API design, etc.

Knowing what you know now, what are some of the tips and tricks you'd give to someone trying to build an easily embeddable library or SDK? Both general advice and also anything specific to C

bagder,
@bagder@mastodon.social avatar

@jawnsy hm, I'll give it a think and reply later.

bagder, to python
@bagder@mastodon.social avatar
bagder, to debian
@bagder@mastodon.social avatar

#Debian is working on a 64 bit time_t transition for 32 bit systems and have noticed that it breaks the #libcurl ABI.

There are two time_ts in the API.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1061992

1div0,
@1div0@mastodon.social avatar

@bagder Bingo! 32-bit time_t this time.?!

bagder, to random
@bagder@mastodon.social avatar

I'm thinking we could switch to another format for the #libcurl documentation: https://github.com/curl/curl/pull/12730

bagder,
@bagder@mastodon.social avatar

@eichin I wanted stronger integration and more control of the end result so that for example my website renders would remain functional

bagder,
@bagder@mastodon.social avatar

@Mangdries you're probably right, but I don't see how that PR is related...

bagder, to random
@bagder@mastodon.social avatar

On this day eleven years ago, I completed the conversion of making the entire #libcurl internals non-blocking: https://daniel.haxx.se/blog/2013/01/17/internally-were-all-multi-now/

"internally, we’re all multi now!"

Looking back over the years, it is kind of amazing how many refactors and overhauls we have done of the libcurl internals while still providing the exact same and functional API...

jscholes, to random
@jscholes@dragonscave.space avatar

Today I learned about #trurl, a command-line tool for URL parsing and manipulation from the developer of #curl and #libcurl. Modify or extract URL hostnames, schemes, port numbers, and path and query segments, trim tracking data, encode spaces and other characters, and get everything as either JSON or readable text output. https://github.com/curl/trurl

bagder, to random
@bagder@mastodon.social avatar

if you ever miss anything in terms of docs for #curl or #libcurl, or if there is ever any detail that makes it not score 10 out of 10, then please let me know.

My aim is to provide the best docs you can find.

aketzu,

@bagder curlopt ssh privkey page doesn't mention that libssh2+gxrypt combo doesn't support extracting pubkey from privkey. Also I think id_rsa/id_dsa defaults are only used with libssh2. Does WolfSSL support pubkey at all? And libssh can do ed25519

https://github.com/libssh2/libssh2/blob/c0f69548be902147ce014ffa40b8db3cf1d4b0b4/src/libgcrypt.c#L169

bagder,
@bagder@mastodon.social avatar

@aketzu lots of details there are SSH library specific, that also changes between versions. It's very hard for libcurl to have an exhaustive description of the myriad of combinations that can be used.. libssh2 speaks ed25519 as well and yes wolfSSH supports pubkey but curl's wolfSSH backend is a little incomplete so maybe there are things lacking...

josephscott, to random

@bagder have you considered enabling compression by default in curl/libcurl? Given the large number of bots and other automation on the net that make use of it, seems like having that on by default could have a sizable impact on the amount of global network traffic. #curl #libcurl #http #compression #webperf

bagder,
@bagder@mastodon.social avatar

@josephscott it could probably be worth considering, yes

bagder, to random
@bagder@mastodon.social avatar

me earlier today: I know! I should make sure all examples in every #libcurl man page can actually compile!

me now: wow manually updating 500 man pages is A LOT of work...

bagder, to random
@bagder@mastodon.social avatar

xcurl

I learned that "xCurl is a Microsoft Game Development Kit compliant implementation of the #libCurl API"

https://daniel.haxx.se/blog/2023/11/30/xcurl/

#curl

dec_hl, to VintageOSes
@dec_hl@mastodon.social avatar

In a forum someone was asking for a TLS-able mail client for #MSDOS.
#DOjS has a #libcurl plugin with #TSL support through #mbedTLS. #curl supports #IMAP and #SMTP. So I should be able to add that support to DOjS.

Now $somebody only needs to write a mail client in #Javascript and we are done...🤔

AAAAAHHHHHHH!!!!! I have enough side projects 🤣

Any takers?

colin_mcmillen,
@colin_mcmillen@piaille.fr avatar

@dec_hl three words:"mime parser", and "charsets" 😭

dec_hl,
@dec_hl@mastodon.social avatar

@colin_mcmillen no, please, stop, my brain hurts already 🤣

bagder, to random
@bagder@mastodon.social avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines