83% of requests (globally) to our apex homepages (bbc.co.uk/ and bbc.com/) are from "Python Requests".
That's 84 million requests per day.
In the words of Bricktop...
83% of requests (globally) to our apex homepages (bbc.co.uk/ and bbc.com/) are from "Python Requests".
That's 84 million requests per day.
In the words of Bricktop...
Cybersecurity cert prep: Lab 13 (Path Traversal) — sending Python requests through a Burp Suite proxy

Cybersecurity cert prep: Lab 18 (Auth) — proper password guessing with Burp Intruder and Python requests

State of client side HTTP in #python
- stdlib http.client - HTTP/1.1 only, docs recommend to use requests instead.
- requests - poorly maintained, in 2020 stopped working when servers deprecated older TLS versions. HTTP/1.1 only, sync only
- #httpx - comparatively slow and API design is driven by compatibility with browsers. Some users plug-in aiohttp for better performance. Supports HTTP/2 but it's discouraged as not optimized.
- #aiohttp - good API, both client and server but seems more focused on the server side; HTTP/1.1 only.
- #niquests - async fork of requests with HTTP/2, but uses forked urllib3 with the same package name as the original, which messes up deployment.
- #aioquic - client & server, HTTP/3 only
🤦
Tak, tak, zdecydowanie należy sforkować #PythonRequests, i przy okazji kilka innych ważnych bibliotek Pythona jako zależności, i jeszcze dodać kilka własnych wynalazków. No i zdecydowanie należy przy tym nadpisywać oryginalne biblioteki. Co może pójść nie tak?
Yes, yes, please fork #PythonRequests and a bunch of other high-profile #Python libraries as its dependencies, and add some more #NIH dependencies to that. Oh, yes, and definitely overwrite the original packages in the process! What could possibly go wrong?
While reviewing a merge request from a coworker who was debugging a mysterious behavior where we would get decompressed tar.gz files from some origins when using #PythonRequests, I've figured out that:
Content-Encoding: gzip and Content-Type: application/x-gzip on the response;At this point this seems so entrenched that I guess all HTTP client libraries should really be implementing the workaround...
The python requests library automatically deflate downloaded content bytes if the response header content-encoding is set to a supported encoding. This behavior can make a file...