Elektrine lite

← Feed

@alex@social.alexwlchan.net

Post #1702024

2026-04-26 10:02 UTC

HTTP GET requests with the Python standard library: https://alexwlchan.net/2026/python-http-with-the-stdlib/ For my local scripts I only need a handful of HTTP requests at a time, so I can do everything I want with a lightweight wrapper around urllib.request. Fewer dependencies FTW. 🥰

Replies (1)

  • @elithebearded@fed.qaz.red 2026-04-27 19:15

    @alex@social.alexwlchan.net Does this handle dechunking? I don't see it mentioned. Transfer-Encoding: chunked It gets used for streaming, which is mentioned, but I have seen it for large HTML pages, and server-side generated images. It is a real pain to deal with if you have have a chunked response with response headers detached

    Open ##2901536